mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-04-25 19:32:39 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user