From 70930ae9e434d078f9029cb48f63649b24f27324 Mon Sep 17 00:00:00 2001 From: Oleksandr Riasnyi Date: Fri, 7 Aug 2026 22:24:21 +0300 Subject: [PATCH] Fix tab rail overflow: reduce icon size and spacing for 11 tabs --- Sources/VoidBar/UI/NotchContentView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/VoidBar/UI/NotchContentView.swift b/Sources/VoidBar/UI/NotchContentView.swift index 9fbde16..a0fba36 100644 --- a/Sources/VoidBar/UI/NotchContentView.swift +++ b/Sources/VoidBar/UI/NotchContentView.swift @@ -222,15 +222,15 @@ private struct Rail: View { private let dwell = Duration.milliseconds(150) var body: some View { - VStack(spacing: 4) { + VStack(spacing: 2) { ForEach(tabs) { tab in Button { vm.select(tab) HapticManager.play(.alignment) } label: { Image(systemName: tab.symbol) - .font(.system(size: 12, weight: .medium)) - .frame(width: 30, height: 24) + .font(.system(size: 11, weight: .medium)) + .frame(width: 28, height: 20) .background( RoundedRectangle(cornerRadius: 7, style: .continuous) .fill(fill(for: tab)) @@ -253,7 +253,7 @@ private struct Rail: View { } } } - .frame(width: 30) + .frame(width: 28) .frame(maxHeight: .infinity, alignment: .center) .animation(Theme.contentAnimation, value: hovered) // Moving to another icon cancels the pending switch along with the