umanggarg commited on
Commit
b3e7628
·
1 Parent(s): bb3479b

fix: use compass rose in collapsed sidebar, remove orange box

Browse files
ui/src/components/Sidebar.jsx CHANGED
@@ -219,13 +219,13 @@ export default function Sidebar({ repos, reposLoading, activeRepo, onSelectRepo,
219
  return (
220
  <div className="sidebar sidebar-collapsed">
221
  {/* Brand icon */}
222
- <div className="sidebar-brand-icon sidebar-collapsed-brand" aria-hidden="true">
223
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none">
224
- <path d="M5.5 5L2 9l3.5 4" stroke="white" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" strokeOpacity="0.95"/>
225
- <path d="M12.5 5L16 9l-3.5 4" stroke="white" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" strokeOpacity="0.95"/>
226
- <circle cx="9" cy="9" r="1.2" fill="white" fillOpacity="0.7"/>
227
- </svg>
228
- </div>
229
 
230
  {/* Repo count */}
231
  {repos.length > 0 && (
 
219
  return (
220
  <div className="sidebar sidebar-collapsed">
221
  {/* Brand icon */}
222
+ <svg width="28" height="28" viewBox="0 0 24 24" fill="none" style={{ margin: '12px 0 4px' }}>
223
+ <path d="M12 2 L14.5 7 L12 12 L9.5 7 Z" fill="var(--accent)"/>
224
+ <path d="M12 22 L13.5 17 L12 12 L10.5 17 Z" fill="var(--accent)" opacity="0.28"/>
225
+ <path d="M22 12 L17 10.5 L12 12 L17 13.5 Z" fill="var(--accent)" opacity="0.28"/>
226
+ <path d="M2 12 L7 10.5 L12 12 L7 13.5 Z" fill="var(--accent)" opacity="0.28"/>
227
+ <circle cx="12" cy="12" r="1.4" fill="var(--accent)"/>
228
+ </svg>
229
 
230
  {/* Repo count */}
231
  {repos.length > 0 && (
ui/src/index.css CHANGED
@@ -3788,20 +3788,21 @@ textarea:focus-visible {
3788
  /* Width is controlled by the grid column (.layout.layout-collapsed), not here */
3789
  .sidebar-collapsed {
3790
  width: 100%;
3791
- padding: 0;
3792
  align-items: center;
3793
- gap: 4px;
3794
  overflow: hidden;
3795
  }
3796
 
3797
  .sidebar-collapsed-brand {
3798
- margin: 12px 0 8px;
3799
- width: 34px;
3800
- height: 34px;
3801
- border-radius: 8px;
3802
  display: flex;
3803
  align-items: center;
3804
  justify-content: center;
 
 
3805
  }
3806
 
3807
  .sidebar-collapsed-item {
 
3788
  /* Width is controlled by the grid column (.layout.layout-collapsed), not here */
3789
  .sidebar-collapsed {
3790
  width: 100%;
3791
+ padding: 12px 0;
3792
  align-items: center;
3793
+ gap: 8px;
3794
  overflow: hidden;
3795
  }
3796
 
3797
  .sidebar-collapsed-brand {
3798
+ width: 30px;
3799
+ height: 30px;
3800
+ border-radius: 7px;
 
3801
  display: flex;
3802
  align-items: center;
3803
  justify-content: center;
3804
+ /* Suppress the large glow from .sidebar-brand-icon in collapsed state */
3805
+ box-shadow: 0 0 0 1px rgba(212, 132, 90, 0.3);
3806
  }
3807
 
3808
  .sidebar-collapsed-item {