fix(ui): reduce header spacing and fix layout shift on view switch

- Change right-side button container from min-h-[40px] to h-[32px]
  for more compact header layout
- Remove conditional padding (pt-6/pt-4) from main content area
  to eliminate layout jump during view transitions
This commit is contained in:
Jason
2025-12-22 21:20:00 +08:00
parent bd488f8f26
commit 0ac66e8e37
+5 -8
View File
@@ -441,7 +441,7 @@ function App() {
</div>
<div
className="flex items-center gap-2 min-h-[40px]"
className="flex items-center gap-2 h-[32px]"
style={{ WebkitAppRegion: "no-drag" } as any}
>
{currentView === "prompts" && (
@@ -551,13 +551,10 @@ function App() {
</div>
</header>
<main
className={`flex-1 overflow-y-auto pb-12 animate-fade-in scroll-overlay ${
currentView === "providers" ? "pt-24" : "pt-20"
}`}
style={{ overflowX: "hidden" }}
>
{renderContent()}
<main className="flex-1 pb-12 animate-fade-in ">
<div className="pb-12">
{renderContent()}
</div>
</main>
<AddProviderDialog