mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
fix(ui): remove focus form borderless inline input while editing (#62919)
This commit is contained in:
committed by
GitHub
Unverified
parent
617a770aec
commit
7a2e04b37d
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user