Skip to content

Commit 6e3084e

Browse files
committed
fix: fix #23
1 parent a590f96 commit 6e3084e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/pages/Scripting/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { ButtonGroup } from '@/components/ui/button-group'
1616
import {
1717
Dialog,
1818
DialogContent,
19+
DialogFooter,
1920
DialogHeader,
2021
DialogTitle,
2122
} from '@/components/ui/dialog'
@@ -135,13 +136,18 @@ const Page: React.FC = () => {
135136
}
136137
}}
137138
>
138-
<DialogContent>
139+
<DialogContent className="flex flex-col max-h-[90%]">
139140
<DialogHeader>
140141
<DialogTitle>{t('scripting.result')}</DialogTitle>
141142
</DialogHeader>
142-
<div className="w-full overflow-hidden">
143+
<div className="w-full overflow-x-hidden overflow-y-scroll">
143144
<CodeContent content={evaluateResult} />
144145
</div>
146+
<DialogFooter>
147+
<Button onClick={() => setEvaluateResult(undefined)}>
148+
{t('common.close')}
149+
</Button>
150+
</DialogFooter>
145151
</DialogContent>
146152
</Dialog>
147153
</FixedFullscreenContainer>

0 commit comments

Comments
 (0)