fix: show explicit script toggle direction

This commit is contained in:
ji ruo committed 2026-10-12 11:56:09 +08:00
1 parent a757ece8c3
commit a908eb28e4
1 file changed
+2 -1
+2 -1
View File
@@ -7,6 +7,7 @@ import {
CheckIcon,
ChevronDownIcon,
ChevronRightIcon,
ChevronUpIcon,
ClipboardListIcon,
CopyIcon,
RefreshCwIcon,
@@ -232,7 +233,7 @@ function ScriptFileSnapshot({ file }: { file: NonNullable<InterceptReviewInput["
aria-expanded={open}
onClick={() => setOpen((value) => !value)}
>
<ChevronDownIcon data-icon="inline-start" className={cn("transition-transform", open && "rotate-180")} />
{open ? <ChevronUpIcon data-icon="inline-start" /> : <ChevronDownIcon data-icon="inline-start" />}
查看脚本内容
</Button>
{open ? <CodeBlock label="脚本内容(审查快照)" text={file.content} /> : null}