Skip to content

Commit 6ab32ea

Browse files
committed
feat(ui): enhance loading spinner and update command configuration
- Increase rotating symbol size to 1.5rem for better visibility - Remove inline size classes in favor of CSS-based sizing - Add 'claude' command capability alongside 'claude-code' sidecar - Remove deprecated externalBin configuration from tauri.conf.json - Standardize rotating symbol styling across components This improves the visual feedback for loading states and cleans up the command execution configuration for better flexibility.
1 parent 55220ab commit 6ab32ea

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

src-tauri/capabilities/default.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
"name": "claude-code",
1919
"sidecar": true,
2020
"args": true
21+
},
22+
{
23+
"name": "claude",
24+
"sidecar": false,
25+
"args": true
2126
}
2227
]
2328
},
@@ -28,6 +33,11 @@
2833
"name": "claude-code",
2934
"sidecar": true,
3035
"args": true
36+
},
37+
{
38+
"name": "claude",
39+
"sidecar": false,
40+
"args": true
3141
}
3242
]
3343
},

src-tauri/tauri.conf.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@
5757
"icons/128x128@2x.png",
5858
"icons/icon.icns",
5959
"icons/icon.png"
60-
],
61-
"externalBin": [
62-
"binaries/claude-code"
6360
]
6461
}
6562
}

src/assets/shimmer.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
.rotating-symbol {
103103
display: inline-block;
104104
color: #d97757;
105-
font-size: inherit;
105+
font-size: 1.5rem; /* Make it bigger! */
106106
margin-right: 0.5rem;
107107
font-weight: bold;
108108
vertical-align: text-bottom;

src/components/ClaudeCodeSession.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ export const ClaudeCodeSession: React.FC<ClaudeCodeSessionProps> = ({
879879
animate={{ opacity: 1 }}
880880
className="flex items-center justify-center py-4 mb-40"
881881
>
882-
<div className="rotating-symbol text-primary text-2xl" />
882+
<div className="rotating-symbol text-primary" />
883883
</motion.div>
884884
)}
885885

@@ -1113,7 +1113,7 @@ export const ClaudeCodeSession: React.FC<ClaudeCodeSessionProps> = ({
11131113
{isLoading && messages.length === 0 && (
11141114
<div className="flex items-center justify-center h-full">
11151115
<div className="flex items-center gap-3">
1116-
<div className="rotating-symbol text-primary text-2xl" />
1116+
<div className="rotating-symbol text-primary" />
11171117
<span className="text-sm text-muted-foreground">
11181118
{session ? "Loading session history..." : "Initializing Claude Code..."}
11191119
</span>

src/styles.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ button:focus-visible,
446446
line-height: 1;
447447
animation: fade-in 0.2s ease-out;
448448
font-weight: normal;
449+
font-size: 1.5rem; /* Make it bigger! */
449450
}
450451

451452
.rotating-symbol::before {
@@ -458,11 +459,7 @@ button:focus-visible,
458459
transform-origin: center;
459460
}
460461

461-
/* Make the rotating symbol more prominent at larger sizes */
462-
.rotating-symbol.text-xl::before,
463-
.rotating-symbol.text-2xl::before {
464-
font-weight: 900;
465-
}
462+
/* Removed special font-weight for larger sizes to maintain consistency */
466463

467464
/* Shimmer hover effect */
468465
@keyframes shimmer {

0 commit comments

Comments
 (0)