mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
chore: generate
This commit is contained in:
parent
bbd0f3a252
commit
c53c9d4e4e
4 changed files with 11 additions and 5 deletions
|
|
@ -54,7 +54,6 @@
|
||||||
line-height: var(--line-height-large);
|
line-height: var(--line-height-large);
|
||||||
letter-spacing: var(--letter-spacing-normal);
|
letter-spacing: var(--letter-spacing-normal);
|
||||||
color: var(--text-strong);
|
color: var(--text-strong);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-slot="basic-tool-tool-subtitle"] {
|
[data-slot="basic-tool-tool-subtitle"] {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,12 @@
|
||||||
import { createEffect, createSignal, on, onCleanup, onMount } from "solid-js"
|
import { createEffect, createSignal, on, onCleanup, onMount } from "solid-js"
|
||||||
import { animate, type AnimationPlaybackControls, clearFadeStyles, clearMaskStyles, GROW_SPRING, WIPE_MASK } from "./motion"
|
import {
|
||||||
|
animate,
|
||||||
|
type AnimationPlaybackControls,
|
||||||
|
clearFadeStyles,
|
||||||
|
clearMaskStyles,
|
||||||
|
GROW_SPRING,
|
||||||
|
WIPE_MASK,
|
||||||
|
} from "./motion"
|
||||||
import { prefersReducedMotion } from "../hooks/use-reduced-motion"
|
import { prefersReducedMotion } from "../hooks/use-reduced-motion"
|
||||||
|
|
||||||
const px = (value: number | string | undefined, fallback: number) => {
|
const px = (value: number | string | undefined, fallback: number) => {
|
||||||
|
|
|
||||||
|
|
@ -79,8 +79,7 @@
|
||||||
transform: translateX(-0.08em);
|
transform: translateX(-0.08em);
|
||||||
transition-property: opacity, filter, transform;
|
transition-property: opacity, filter, transform;
|
||||||
transition-duration:
|
transition-duration:
|
||||||
var(--tool-motion-fade-ms, 400ms), var(--tool-motion-fade-ms, 400ms),
|
var(--tool-motion-fade-ms, 400ms), var(--tool-motion-fade-ms, 400ms), var(--tool-motion-fade-ms, 400ms);
|
||||||
var(--tool-motion-fade-ms, 400ms);
|
|
||||||
transition-timing-function: ease-out, ease-out, ease-out;
|
transition-timing-function: ease-out, ease-out, ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,8 @@ export function ToolStatusTitle(props: {
|
||||||
}) {
|
}) {
|
||||||
const split = createMemo(() => commonPrefix(props.activeText, props.doneText))
|
const split = createMemo(() => commonPrefix(props.activeText, props.doneText))
|
||||||
const suffix = createMemo(
|
const suffix = createMemo(
|
||||||
() => (props.split ?? true) && split().prefix.length >= 2 && split().aSuffix.length > 0 && split().bSuffix.length > 0,
|
() =>
|
||||||
|
(props.split ?? true) && split().prefix.length >= 2 && split().aSuffix.length > 0 && split().bSuffix.length > 0,
|
||||||
)
|
)
|
||||||
const prefixLen = createMemo(() => Array.from(split().prefix).length)
|
const prefixLen = createMemo(() => Array.from(split().prefix).length)
|
||||||
const activeTail = createMemo(() => (suffix() ? split().aSuffix : props.activeText))
|
const activeTail = createMemo(() => (suffix() ? split().aSuffix : props.activeText))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue