Skip to content

Commit eef1780

Browse files
committed
fix: show type-to-confirm phrase above the input so it persists while typing
The required phrase was only in the placeholder, which disappears on the first keystroke. Display it in a read-only box above the input instead (still not selectable, so it must be typed). Claude-Session: https://claude.ai/code/session_01T2BCDzNE6K9DVzzShjSmXf
1 parent 48c0492 commit eef1780

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/dialogs/confirm.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,13 @@ export const ConfirmDialog = memo(() => {
191191
</div>
192192
)}
193193
{props.requireInputText && (
194-
<div className="flex flex-row items-center gap-1 py-4 justify-center">
194+
<div className="flex flex-col gap-2 py-4">
195+
<div className="bg-secondary rounded-md px-3 py-2">
196+
<p className="text-sm text-center font-medium break-all">{props.requireInputText}</p>
197+
</div>
195198
<Input
196199
value={inputValue}
197200
onChange={e => setInputValue(e.target.value)}
198-
placeholder={props.requireInputText}
199201
type="text"
200202
className="w-full"
201203
autoCapitalize="none"

0 commit comments

Comments
 (0)