fix: match New Worktree dialog input styling to sidebar prompt input (#6158)

This commit is contained in:
Marius
2026-02-23 11:20:39 +00:00
committed by GitHub
parent 2c15bae7d4
commit 3f7cd3c0cf
2 changed files with 7 additions and 6 deletions
@@ -1546,13 +1546,13 @@ const NewWorktreeDialog: Component<{ onClose: () => void }> = (props) => {
return (
<Dialog title="New Worktree" fit>
<div class="am-nv-dialog" onKeyDown={handleKeyDown}>
{/* Prompt input — reuses the same CSS as the sidebar chat input */}
<div class="am-prompt-input-container">
<div class="am-prompt-input-wrapper">
<div class="am-prompt-input-ghost-wrapper">
{/* Prompt input — reuses the sidebar chat-input base classes for consistent styling */}
<div class="prompt-input-container am-prompt-input-container">
<div class="prompt-input-wrapper am-prompt-input-wrapper">
<div class="prompt-input-ghost-wrapper am-prompt-input-ghost-wrapper">
<textarea
ref={textareaRef}
class="am-prompt-input"
class="prompt-input am-prompt-input"
placeholder={`Type a message (${isMac ? "\u2318" : "Ctrl+"}Enter to send)`}
value={prompt()}
onInput={(e) => {
@@ -763,7 +763,7 @@ button.am-section-toggle:hover .am-section-label {
min-width: 460px;
}
/* Reuse am-prompt-input-container inside dialog — resizable from bottom edge */
/* Dialog overrides for prompt-input-container — resizable from bottom edge */
.am-nv-dialog .am-prompt-input-container {
margin: 0;
resize: vertical;
@@ -786,6 +786,7 @@ button.am-section-toggle:hover .am-section-label {
.am-nv-dialog .am-prompt-input {
color: var(--vscode-input-foreground, var(--text-base));
resize: none;
width: 100%;
min-height: 100%;
max-height: none;
}