mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 23:40:48 +00:00
chore: generate
This commit is contained in:
parent
9d7852b5c3
commit
b5dc6e670a
6 changed files with 84 additions and 31 deletions
|
|
@ -256,10 +256,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||
pendingAutoAccept: false,
|
||||
})
|
||||
|
||||
const buttonsSpring = useSpring(
|
||||
() => (store.mode === "normal" ? 1 : 0),
|
||||
{ visualDuration: 0.2, bounce: 0 },
|
||||
)
|
||||
const buttonsSpring = useSpring(() => (store.mode === "normal" ? 1 : 0), { visualDuration: 0.2, bounce: 0 })
|
||||
|
||||
const commentCount = createMemo(() => {
|
||||
if (store.mode === "shell") return 0
|
||||
|
|
|
|||
|
|
@ -73,10 +73,7 @@ export function SessionComposerRegion(props: {
|
|||
bounce: props.dockCloseBounce ?? props.bounce ?? 0,
|
||||
},
|
||||
)
|
||||
const progress = useSpring(
|
||||
() => (open() ? 1 : 0),
|
||||
config,
|
||||
)
|
||||
const progress = useSpring(() => (open() ? 1 : 0), config)
|
||||
const value = createMemo(() => Math.max(0, Math.min(1, progress())))
|
||||
const [height, setHeight] = createSignal(320)
|
||||
const dock = createMemo(() => props.state.dock() || value() > 0.001)
|
||||
|
|
|
|||
|
|
@ -29,11 +29,7 @@ export function createSessionComposerBlocked() {
|
|||
})
|
||||
}
|
||||
|
||||
export function createSessionComposerState(
|
||||
options?: {
|
||||
closeMs?: number | (() => number)
|
||||
},
|
||||
) {
|
||||
export function createSessionComposerState(options?: { closeMs?: number | (() => number) }) {
|
||||
const params = useParams()
|
||||
const sdk = useSDK()
|
||||
const sync = useSync()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue