fix(agent-manager): add am- prefix to prompt-input CSS classes (#535)
The agent-manager-arch test enforces that all CSS class selectors in agent-manager.css use the am- prefix. The NewWorktreeDialog was reusing unprefixed prompt-input-* classes from the sidebar chat CSS, which violated this rule and broke the test-vscode CI pipeline.
This commit is contained in:
@@ -1495,12 +1495,12 @@ const NewWorktreeDialog: Component<{ onClose: () => void }> = (props) => {
|
||||
<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="prompt-input-container">
|
||||
<div class="prompt-input-wrapper">
|
||||
<div class="prompt-input-ghost-wrapper">
|
||||
<div class="am-prompt-input-container">
|
||||
<div class="am-prompt-input-wrapper">
|
||||
<div class="am-prompt-input-ghost-wrapper">
|
||||
<textarea
|
||||
ref={textareaRef}
|
||||
class="prompt-input"
|
||||
class="am-prompt-input"
|
||||
placeholder={`Type a message (${isMac ? "\u2318" : "Ctrl+"}Enter to send)`}
|
||||
value={prompt()}
|
||||
onInput={(e) => {
|
||||
|
||||
@@ -763,8 +763,8 @@ button.am-section-toggle:hover .am-section-label {
|
||||
min-width: 460px;
|
||||
}
|
||||
|
||||
/* Reuse prompt-input-container inside dialog — resizable from bottom edge */
|
||||
.am-nv-dialog .prompt-input-container {
|
||||
/* Reuse am-prompt-input-container inside dialog — resizable from bottom edge */
|
||||
.am-nv-dialog .am-prompt-input-container {
|
||||
margin: 0;
|
||||
resize: vertical;
|
||||
overflow: hidden;
|
||||
@@ -774,16 +774,16 @@ button.am-section-toggle:hover .am-section-label {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.am-nv-dialog .prompt-input-wrapper {
|
||||
.am-nv-dialog .am-prompt-input-wrapper {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.am-nv-dialog .prompt-input-ghost-wrapper {
|
||||
.am-nv-dialog .am-prompt-input-ghost-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.am-nv-dialog .prompt-input {
|
||||
.am-nv-dialog .am-prompt-input {
|
||||
color: var(--vscode-input-foreground, var(--text-base));
|
||||
resize: none;
|
||||
min-height: 100%;
|
||||
|
||||
Reference in New Issue
Block a user