feat: switch to size preset for more consistent control

This commit is contained in:
Michael Freno
2026-01-09 23:01:57 -05:00
parent 56521833e1
commit bbf1cbb3b5
11 changed files with 96 additions and 59 deletions

View File

@@ -50,9 +50,6 @@ struct MenuBarContentView: View {
var onQuit: () -> Void
var onOpenSettings: () -> Void
var onOpenSettingsTab: (Int) -> Void
// Force view refresh when timer states change
@State private var refreshID = UUID()
var body: some View {
VStack(alignment: .leading, spacing: 0) {
@@ -170,13 +167,9 @@ struct MenuBarContentView: View {
.padding(.vertical, 8)
}
.frame(width: 300)
.id(refreshID)
.onReceive(NotificationCenter.default.publisher(for: Notification.Name("CloseMenuBarPopover"))) { _ in
dismiss()
}
.onReceive(timerEngine.$timerStates) { _ in
refreshID = UUID()
}
}
private var isPaused: Bool {