Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: use kBase constants in SwiftUI view for overlay resize

Louis Beaumont6e191b3beae5
diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder.swift b/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder.swift
index 1191d27fd..7e6b106b2 100644
--- a/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder.swift
+++ b/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder.swift
@@ -226,7 +226,7 @@ struct ShortcutReminderView: View {
}
}
.padding(.horizontal, 5)
- .frame(height: kCollapsedH)
+ .frame(height: kBaseCollapsedH)
.background(Capsule().fill(Color.black.opacity(0.75)))
.overlay(Capsule().stroke(.white.opacity(0.15), lineWidth: 0.5))
}
@@ -269,7 +269,7 @@ struct ShortcutReminderView: View {
onAction("close")
}
}
- .frame(height: kExpandedH)
+ .frame(height: kBaseExpandedH)
.background(Capsule().fill(Color.black.opacity(0.8)))
.overlay(Capsule().stroke(.white.opacity(0.15), lineWidth: 0.5))
.clipShape(Capsule()) // clip hover highlights to capsule shape