mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix: add fixed width to mode toggle button to prevent layout shift
This commit is contained in:
1 parent
cfae11cf0a
commit
614557ba30
1 file changed
+2
-2
@@ -495,9 +495,9 @@ export function PromptInput({
|
||||
<div className="flex gap-2 items-end">
|
||||
<button
|
||||
onClick={handleModeToggle}
|
||||
className={`px-2 py-1 rounded-md text-xs font-medium border ${modeBg} ${modeColor} hover:opacity-80 transition-opacity cursor-pointer`}
|
||||
className={`w-16 px-2 py-1 rounded-md text-xs font-medium border ${modeBg} ${modeColor} hover:opacity-80 transition-opacity cursor-pointer`}
|
||||
>
|
||||
{currentMode.toUpperCase()} MODE
|
||||
{currentMode.toUpperCase()}
|
||||
</button>
|
||||
{isBashMode && (
|
||||
<div className="px-2 py-1 rounded-md text-xs font-medium border bg-purple-500/10 border-purple-500/30 text-purple-600 dark:text-purple-400">
|
||||
|
||||
Reference in new issue
Block a user