mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-19 01:51:21 +08:00
fix: match New Worktree dialog input styling to sidebar prompt input (#6158)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user