Spaces:
Running
Running
fix(sidebar): remove flex-1 stretch on repos section; move quality tip inside
Browse files- flex:1 on repos section was expanding it to fill all sidebar height,
creating a large empty gap below the repo list
- ContextualTip was a sibling rendered outside the section β moved inside
so it's visually grouped with the repo list
- Adjusted .ctip padding to match section context
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- ui/src/components/Sidebar.jsx +2 -4
- ui/src/index.css +2 -2
ui/src/components/Sidebar.jsx
CHANGED
|
@@ -407,7 +407,7 @@ export default function Sidebar({ repos, reposLoading, activeRepo, onSelectRepo,
|
|
| 407 |
)}
|
| 408 |
|
| 409 |
{/* ββ Repos ββ */}
|
| 410 |
-
<div className="sidebar-section"
|
| 411 |
<div className="section-label">Indexed Repos ({reposLoading ? "β¦" : repos.length})</div>
|
| 412 |
{reposLoading ? (
|
| 413 |
// Skeleton while the first fetch is in flight β backend can take a moment on cold start
|
|
@@ -498,11 +498,9 @@ export default function Sidebar({ repos, reposLoading, activeRepo, onSelectRepo,
|
|
| 498 |
})}
|
| 499 |
</div>
|
| 500 |
)}
|
|
|
|
| 501 |
</div>
|
| 502 |
|
| 503 |
-
{/* ββ Quality tip ββ */}
|
| 504 |
-
{repos.length > 0 && <ContextualTip />}
|
| 505 |
-
|
| 506 |
{/* ββ Recent chats ββ */}
|
| 507 |
{sessions && sessions.length > 0 && (
|
| 508 |
<div className="sidebar-section">
|
|
|
|
| 407 |
)}
|
| 408 |
|
| 409 |
{/* ββ Repos ββ */}
|
| 410 |
+
<div className="sidebar-section">
|
| 411 |
<div className="section-label">Indexed Repos ({reposLoading ? "β¦" : repos.length})</div>
|
| 412 |
{reposLoading ? (
|
| 413 |
// Skeleton while the first fetch is in flight β backend can take a moment on cold start
|
|
|
|
| 498 |
})}
|
| 499 |
</div>
|
| 500 |
)}
|
| 501 |
+
{repos.length > 0 && <ContextualTip />}
|
| 502 |
</div>
|
| 503 |
|
|
|
|
|
|
|
|
|
|
| 504 |
{/* ββ Recent chats ββ */}
|
| 505 |
{sessions && sessions.length > 0 && (
|
| 506 |
<div className="sidebar-section">
|
ui/src/index.css
CHANGED
|
@@ -1531,9 +1531,9 @@ textarea:focus-visible {
|
|
| 1531 |
color: var(--text);
|
| 1532 |
}
|
| 1533 |
|
| 1534 |
-
/* ββ Contextual retrieval tip β
|
| 1535 |
.ctip {
|
| 1536 |
-
padding: 0
|
| 1537 |
}
|
| 1538 |
.ctip-trigger {
|
| 1539 |
display: flex;
|
|
|
|
| 1531 |
color: var(--text);
|
| 1532 |
}
|
| 1533 |
|
| 1534 |
+
/* ββ Contextual retrieval tip β sits inside the repos section ββ */
|
| 1535 |
.ctip {
|
| 1536 |
+
padding: 6px 0 2px;
|
| 1537 |
}
|
| 1538 |
.ctip-trigger {
|
| 1539 |
display: flex;
|