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 1586451862
commit db8180aa31

View File

@@ -512,7 +512,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" && (
@@ -625,9 +625,7 @@ function App() {
</header>
<main className="flex-1 pb-12 animate-fade-in ">
<div
className={cn("pb-12", currentView === "providers" ? "pt-6" : "pt-4")}
>
<div className="pb-12">
{renderContent()}
</div>
</main>