mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 05:01:03 +03:00
fix(app): use a drawn slash in the model chip and widen the composer text inset (#58424)
This commit is contained in:
committed by
GitHub
Unverified
parent
e33583237b
commit
2f44ad48d3
@@ -129,7 +129,18 @@ function ComposerModelControl(props: {
|
||||
{(name) => (
|
||||
<>
|
||||
<span class="shrink-0 text-v2-text-text-faint">{name()}</span>
|
||||
<span class="shrink-0 whitespace-pre text-v2-text-text-faint">{" / "}</span>
|
||||
<svg
|
||||
class="mx-1.5 shrink-0 self-center fill-none stroke-current text-v2-text-text-faint opacity-60"
|
||||
width="3"
|
||||
height="8"
|
||||
viewBox="0 0 3 8"
|
||||
stroke-width="1"
|
||||
stroke-linecap="round"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M2.5 0.5L0.5 7.5" />
|
||||
</svg>
|
||||
<span class="sr-only">{" / "}</span>
|
||||
</>
|
||||
)}
|
||||
</Show>
|
||||
|
||||
@@ -311,7 +311,7 @@ export function ComposerEditor(props: ComposerEditorProps) {
|
||||
spellcheck={state.mode === "normal"}
|
||||
// @ts-expect-error
|
||||
autocomplete="off"
|
||||
class="relative z-10 block w-full whitespace-pre-wrap bg-transparent px-3 pt-4 pb-2 text-[13px] font-[440] leading-5 text-v2-text-text-base focus:outline-none [&_[data-mention=file]]:text-syntax-property [&_[data-mention=agent]]:text-syntax-type [&_[data-mention=reference]]:text-syntax-keyword"
|
||||
class="relative z-10 block w-full whitespace-pre-wrap bg-transparent ps-4 pe-3 pt-4 pb-2 text-[13px] font-[440] leading-5 text-v2-text-text-base focus:outline-none [&_[data-mention=file]]:text-syntax-property [&_[data-mention=agent]]:text-syntax-type [&_[data-mention=reference]]:text-syntax-keyword"
|
||||
classList={{ "font-mono! tracking-[-0.04px]": state.mode === "shell", "opacity-50": props.disabled }}
|
||||
style={{
|
||||
"unicode-bidi": state.mode === "normal" ? "plaintext" : undefined,
|
||||
@@ -383,7 +383,7 @@ export function ComposerEditor(props: ComposerEditorProps) {
|
||||
<Show when={!props.controller.value()}>
|
||||
<div
|
||||
dir={state.mode === "normal" ? "auto" : "ltr"}
|
||||
class="pointer-events-none absolute inset-x-0 top-0 px-3 pt-4 text-[13px] font-[440] leading-5 text-v2-text-text-faint"
|
||||
class="pointer-events-none absolute inset-x-0 top-0 ps-4 pe-3 pt-4 text-[13px] font-[440] leading-5 text-v2-text-text-faint"
|
||||
classList={{ "font-mono! tracking-[-0.04px]": state.mode === "shell" }}
|
||||
style={{ "unicode-bidi": state.mode === "normal" ? "plaintext" : undefined, "text-align": "start" }}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user