fix(ui): remove focus form borderless inline input while editing (#62919)

This commit is contained in:
usrnk1
2026-11-09 17:55:46 +01:00
committed by GitHub
Unverified
parent 617a770aec
commit 7a2e04b37d
6 changed files with 3 additions and 16 deletions
+1 -1
View File
@@ -705,7 +705,7 @@ function HomeSessionRow(
[font-weight:530] field-sizing-content outline-none focus:outline-none focus-visible:outline-none
${showProjectName() ? "max-w-[min(70%,480px)] flex-[0_1_auto]" : "flex-[1_1_auto]"}
`}
style={{ "--inline-input-shadow": "none", "text-align": "start" }}
style={{ "text-align": "start" }}
onInput={(event) =>
props.onRowEvent({ type: "editor.input", sessionID: sessionID(), draft: event.currentTarget.value })
}
@@ -36,7 +36,7 @@ export function AccountNameInput(props: {
readOnly={rename.saving()}
aria-busy={rename.saving() || undefined}
class={`field-sizing-content rounded-[6px] px-1 py-1 ${props.class ?? ""}`}
style={{ "--inline-input-shadow": "none", "text-align": "start" }}
style={{ "text-align": "start" }}
onInput={(event) => rename.input(event.currentTarget.value)}
data-owns-escape
onKeyDown={rename.keyDown}
@@ -84,7 +84,7 @@ export function SettingsProjectRow(props: {
readOnly={rename.saving()}
aria-busy={rename.saving() || undefined}
class="w-full text-[13px] font-[530] leading-5 tracking-[-0.04px] text-v2-text-text-base outline-none"
style={{ "--inline-input-shadow": "none", "border-radius": "0", "text-align": "start" }}
style={{ "border-radius": "0", "text-align": "start" }}
onInput={(event) => rename.input(event.currentTarget.value)}
onKeyDown={rename.keyDown}
onBlur={rename.blur}
@@ -402,13 +402,7 @@
}
&[data-editing="true"] .question-custom-field[data-component="text-input-v2"] {
background:
linear-gradient(180deg, var(--v2-alpha-light-2), var(--v2-alpha-light-0)), var(--v2-background-bg-base);
box-shadow: inset 0 0 0 1px var(--v2-border-border-focus);
[data-slot="text-input-v2-input"] {
padding-inline: 8px;
&::placeholder {
color: var(--v2-text-text-faint);
}
@@ -367,13 +367,7 @@
padding-inline: 10px;
&[data-editing="true"] .question-custom-field[data-component="text-input-v2"] {
background:
linear-gradient(180deg, var(--v2-alpha-light-2), var(--v2-alpha-light-0)), var(--v2-background-bg-base);
box-shadow: inset 0 0 0 1px var(--v2-border-border-focus);
[data-slot="text-input-v2-input"] {
padding-inline: 8px;
&::placeholder {
color: var(--v2-text-text-faint);
}
@@ -12,6 +12,5 @@
&:focus {
outline: none;
box-shadow: var(--inline-input-shadow, 0 0 0 1px var(--v2-border-border-focus));
}
}