Skip to content

Commit

Permalink
fix: fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Sep 21, 2024
1 parent a590f96 commit 6e3084e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/Scripting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { ButtonGroup } from '@/components/ui/button-group'
import {
Dialog,
DialogContent,
DialogFooter,
DialogHeader,
DialogTitle,
} from '@/components/ui/dialog'
Expand Down Expand Up @@ -135,13 +136,18 @@ const Page: React.FC = () => {
}
}}
>
<DialogContent>
<DialogContent className="flex flex-col max-h-[90%]">
<DialogHeader>
<DialogTitle>{t('scripting.result')}</DialogTitle>
</DialogHeader>
<div className="w-full overflow-hidden">
<div className="w-full overflow-x-hidden overflow-y-scroll">
<CodeContent content={evaluateResult} />
</div>
<DialogFooter>
<Button onClick={() => setEvaluateResult(undefined)}>
{t('common.close')}
</Button>
</DialogFooter>
</DialogContent>
</Dialog>
</FixedFullscreenContainer>
Expand Down

0 comments on commit 6e3084e

Please sign in to comment.