mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-06 11:22:48 +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:
+2
-4
@@ -512,7 +512,7 @@ function App() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<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}
|
style={{ WebkitAppRegion: "no-drag" } as any}
|
||||||
>
|
>
|
||||||
{currentView === "prompts" && (
|
{currentView === "prompts" && (
|
||||||
@@ -625,9 +625,7 @@ function App() {
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main className="flex-1 pb-12 animate-fade-in ">
|
<main className="flex-1 pb-12 animate-fade-in ">
|
||||||
<div
|
<div className="pb-12">
|
||||||
className={cn("pb-12", currentView === "providers" ? "pt-6" : "pt-4")}
|
|
||||||
>
|
|
||||||
{renderContent()}
|
{renderContent()}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user