fix(session-ui): restore fading notice dividers in the new timeline (#64453)

This commit is contained in:
usrnk1
2026-11-17 15:48:19 +01:00
committed by GitHub
Unverified
parent b2fda77a4f
commit a60a9d0154
@@ -2,9 +2,11 @@ import { hasProviderIcon, ProviderIcon } from "@opencode/ui/provider-icon"
import { Tooltip } from "@opencode/ui/tooltip"
import { Show } from "solid-js"
const line = "h-px min-w-0 flex-1 bg-linear-to-r from-transparent to-v2-border-border-strong to-70%"
/**
* A divider with its label, such as a model switch or Interrupted. Rows are spaced by block, so it is only as tall as its
* text, with a plain line. A provider without its own icon shows none, rather than the generic fallback.
* text. A provider without its own icon shows none, rather than the generic fallback.
*/
export function Separator(props: {
label: string
@@ -27,7 +29,7 @@ export function Separator(props: {
return (
<div class="flex h-4 w-full items-center gap-3 text-v2-text-text-faint">
<span class="h-px min-w-0 flex-1 bg-v2-border-border-base" />
<span class={`${line} rtl:-scale-x-100`} />
<span class="flex min-w-0 items-center gap-1 text-[13px] font-[440] leading-text-compact tracking-[-0.04px]">
<Show when={props.providerID && hasProviderIcon(props.providerID) ? props.providerID : undefined}>
{(providerID) => <ProviderIcon id={providerID()} class="text-v2-icon-icon-faint" aria-hidden="true" />}
@@ -67,7 +69,7 @@ export function Separator(props: {
</Show>
</span>
</span>
<span class="h-px min-w-0 flex-1 bg-v2-border-border-base" />
<span class={`${line} ltr:-scale-x-100`} />
</div>
)
}