umanggarg Claude Sonnet 4.6 commited on
Commit
faa69dc
Β·
1 Parent(s): b84d0e5

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 CHANGED
@@ -407,7 +407,7 @@ export default function Sidebar({ repos, reposLoading, activeRepo, onSelectRepo,
407
  )}
408
 
409
  {/* ── Repos ── */}
410
- <div className="sidebar-section" style={{ flex: 1 }}>
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 β€” collapsible, low-key ── */
1535
  .ctip {
1536
- padding: 0 16px 14px;
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;