Skip to content

A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.

C++

fix(tabs): define padded button hit shapes

Tobif96f2ffb2c06
diff --git a/macos/Presentation/Views/TabBar/TabBarSwiftUI.swift b/macos/Presentation/Views/TabBar/TabBarSwiftUI.swift
index d507734..d895a6d 100644
--- a/macos/Presentation/Views/TabBar/TabBarSwiftUI.swift
+++ b/macos/Presentation/Views/TabBar/TabBarSwiftUI.swift
@@ -209,6 +209,7 @@ struct TabItemView: View {
.padding(.leading, 14)
.padding(.trailing, 7)
.frame(height: 38)
+ .contentShape(Rectangle())
}
.buttonStyle(.plain)
}
@@ -219,6 +220,7 @@ struct TabItemView: View {
.foregroundStyle(.secondary)
.padding(.trailing, 14)
.frame(height: 38)
+ .contentShape(Rectangle())
}
.buttonStyle(.plain)
.opacity(isHovering || isActive ? 1 : 0)