� CRITICAL BUTTON CONTAINER FIX: Added missing flex gap-1 wrapper
Browse files� Found the EXACT structural difference!
❌ BEFORE - Missing Container:
Configuration:
<div flex items-center>
<h2>Configuration</h2>
<Button>collapse</Button> ← NO WRAPPER!
</div>
✅ AFTER - Perfect Match:
Sessions: Configuration:
<div flex items-center> <div flex items-center>
<h2>Chat Sessions</h2> <h2>Configuration</h2>
<div flex gap-1> <div flex gap-1> ← ADDED!
<Button>New</Button> <Button>collapse</Button>
<Button>collapse</Button> </div>
</div> </div>
</div> </div>
� Technical Fix:
- Added missing 'flex gap-1' wrapper around Configuration collapse button
- Now both headers have IDENTICAL DOM structure and flex behavior
- Buttons now have same container hierarchy and spacing logic
✅ Result: Both titles should now be positioned identically!
|
@@ -512,15 +512,17 @@ export function Playground() {
|
|
| 512 |
<div className="p-4 space-y-4 h-full">
|
| 513 |
<div className={`flex items-center ${configCollapsed ? 'justify-center' : 'justify-between'}`}>
|
| 514 |
{!configCollapsed && <h2 className="font-semibold">Configuration</h2>}
|
| 515 |
-
<
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
|
|
|
|
|
|
| 524 |
</div>
|
| 525 |
|
| 526 |
{configCollapsed && (
|
|
|
|
| 512 |
<div className="p-4 space-y-4 h-full">
|
| 513 |
<div className={`flex items-center ${configCollapsed ? 'justify-center' : 'justify-between'}`}>
|
| 514 |
{!configCollapsed && <h2 className="font-semibold">Configuration</h2>}
|
| 515 |
+
<div className="flex gap-1">
|
| 516 |
+
<Button
|
| 517 |
+
onClick={() => setConfigCollapsed(!configCollapsed)}
|
| 518 |
+
size="sm"
|
| 519 |
+
variant="ghost"
|
| 520 |
+
className="h-8 w-8 p-0 hover:bg-gray-100"
|
| 521 |
+
title={configCollapsed ? "Expand Configuration" : "Collapse Configuration"}
|
| 522 |
+
>
|
| 523 |
+
{configCollapsed ? <ChevronLeft className="h-4 w-4" /> : <ChevronRight className="h-4 w-4" />}
|
| 524 |
+
</Button>
|
| 525 |
+
</div>
|
| 526 |
</div>
|
| 527 |
|
| 528 |
{configCollapsed && (
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -5,7 +5,7 @@
|
|
| 5 |
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
<title>Edge LLM</title>
|
| 8 |
-
<script type="module" crossorigin src="/assets/index-
|
| 9 |
<link rel="stylesheet" href="/assets/index-2973491c.css">
|
| 10 |
</head>
|
| 11 |
<body>
|
|
|
|
| 5 |
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
<title>Edge LLM</title>
|
| 8 |
+
<script type="module" crossorigin src="/assets/index-804e1731.js"></script>
|
| 9 |
<link rel="stylesheet" href="/assets/index-2973491c.css">
|
| 10 |
</head>
|
| 11 |
<body>
|