mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Update UI styling for mode toggle and session indicators
This commit is contained in:
1 parent
ecf00cc4ef
commit
ce2630936d
2 files changed
+3
-3
No files matched your search
@@ -522,7 +522,7 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(funct
|
||||
<div className="flex gap-1.5 md:gap-2 items-center">
|
||||
<button
|
||||
onClick={handleModeToggle}
|
||||
className={`px-3 md:px-3.5 py-1.5 md:py-2 rounded-lg text-sm font-medium border w-14 flex items-center justify-center transition-all duration-200 active:scale-95 hover:scale-105 shadow-md ${
|
||||
className={`px-3 md:px-3.5 py-1 md:py-2 rounded-lg text-sm font-medium border w-14 flex items-center justify-center transition-all duration-200 active:scale-95 hover:scale-105 shadow-md ${
|
||||
isBashMode
|
||||
? 'bg-purple-500/20 border-purple-400 text-purple-700 dark:text-purple-300 shadow-purple-500/20 hover:shadow-purple-500/30'
|
||||
: `${modeBg} ${modeColor} ${modeShadow}`
|
||||
@@ -531,7 +531,7 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(funct
|
||||
{isBashMode ? 'BASH' : currentMode.toUpperCase()}
|
||||
</button>
|
||||
{hasActiveStream ? (
|
||||
<div className="px-2 py-1 rounded-md text-xs font-medium border bg-muted border-border text-muted-foreground max-w-[120px] md:max-w-[180px] truncate">
|
||||
<div className="px-2.5 py-1.5 md:px-3 md:py-2 rounded-lg text-xs md:text-sm font-medium border bg-muted border-border text-muted-foreground max-w-[120px] md:max-w-[180px] dark:border-white/30">
|
||||
<SessionStatusIndicator sessionID={sessionID} />
|
||||
</div>
|
||||
) : (
|
||||
|
||||
@@ -98,7 +98,7 @@ export const SessionStatusIndicator = memo(function SessionStatusIndicator({
|
||||
{Array.from({ length: SCANNER_SEGMENTS }).map((_, i) => (
|
||||
<div
|
||||
key={i}
|
||||
className={`w-1 h-3 rounded-sm transition-colors duration-75 ${getSegmentColor(i, status.type)}`}
|
||||
className={`w-1 h-4 rounded-sm transition-colors duration-75 ${getSegmentColor(i, status.type)}`}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user