Spaces:
Running
Running
fix(sidebar): larger compass in brand icon — 18→22px SVG, 34→36px container, deeper gradient
Browse files- ui/src/components/Sidebar.jsx +5 -5
- ui/src/index.css +7 -6
ui/src/components/Sidebar.jsx
CHANGED
|
@@ -271,12 +271,12 @@ export default function Sidebar({ repos, reposLoading, activeRepo, onSelectRepo,
|
|
| 271 |
<div className="sidebar-brand">
|
| 272 |
{/* Icon container — Raycast-style rounded square with gradient + compass inside */}
|
| 273 |
<div className="sidebar-brand-icon">
|
| 274 |
-
<svg width="
|
| 275 |
<path d="M12 2 L14.5 7 L12 12 L9.5 7 Z" fill="white"/>
|
| 276 |
-
<path d="M12 22 L13.5 17 L12 12 L10.5 17 Z" fill="white" opacity="0.
|
| 277 |
-
<path d="M22 12 L17 10.5 L12 12 L17 13.5 Z" fill="white" opacity="0.
|
| 278 |
-
<path d="M2 12 L7 10.5 L12 12 L7 13.5 Z" fill="white" opacity="0.
|
| 279 |
-
<circle cx="12" cy="12" r="1.
|
| 280 |
</svg>
|
| 281 |
</div>
|
| 282 |
<div style={{ flex: 1 }}>
|
|
|
|
| 271 |
<div className="sidebar-brand">
|
| 272 |
{/* Icon container — Raycast-style rounded square with gradient + compass inside */}
|
| 273 |
<div className="sidebar-brand-icon">
|
| 274 |
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="none">
|
| 275 |
<path d="M12 2 L14.5 7 L12 12 L9.5 7 Z" fill="white"/>
|
| 276 |
+
<path d="M12 22 L13.5 17 L12 12 L10.5 17 Z" fill="white" opacity="0.50"/>
|
| 277 |
+
<path d="M22 12 L17 10.5 L12 12 L17 13.5 Z" fill="white" opacity="0.50"/>
|
| 278 |
+
<path d="M2 12 L7 10.5 L12 12 L7 13.5 Z" fill="white" opacity="0.50"/>
|
| 279 |
+
<circle cx="12" cy="12" r="1.6" fill="white"/>
|
| 280 |
</svg>
|
| 281 |
</div>
|
| 282 |
<div style={{ flex: 1 }}>
|
ui/src/index.css
CHANGED
|
@@ -256,17 +256,18 @@ textarea:focus-visible {
|
|
| 256 |
|
| 257 |
/* Keep icon styles for the collapsed rail (sidebar-collapsed-brand) */
|
| 258 |
.sidebar-brand-icon {
|
| 259 |
-
width:
|
| 260 |
-
height:
|
| 261 |
-
background: linear-gradient(
|
| 262 |
-
border-radius:
|
| 263 |
display: flex;
|
| 264 |
align-items: center;
|
| 265 |
justify-content: center;
|
| 266 |
color: #fff;
|
| 267 |
box-shadow:
|
| 268 |
-
0 0 0 1px rgba(91, 143, 249, 0.
|
| 269 |
-
0 4px
|
|
|
|
| 270 |
flex-shrink: 0;
|
| 271 |
position: relative;
|
| 272 |
overflow: hidden;
|
|
|
|
| 256 |
|
| 257 |
/* Keep icon styles for the collapsed rail (sidebar-collapsed-brand) */
|
| 258 |
.sidebar-brand-icon {
|
| 259 |
+
width: 36px;
|
| 260 |
+
height: 36px;
|
| 261 |
+
background: linear-gradient(145deg, #2A5ED8 0%, #4A7FE8 45%, #6B9FFF 100%);
|
| 262 |
+
border-radius: 10px;
|
| 263 |
display: flex;
|
| 264 |
align-items: center;
|
| 265 |
justify-content: center;
|
| 266 |
color: #fff;
|
| 267 |
box-shadow:
|
| 268 |
+
0 0 0 1px rgba(91, 143, 249, 0.35),
|
| 269 |
+
0 4px 20px rgba(91, 143, 249, 0.30),
|
| 270 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
| 271 |
flex-shrink: 0;
|
| 272 |
position: relative;
|
| 273 |
overflow: hidden;
|