mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
fix: type modal height
This commit is contained in:
parent
31ca647ca3
commit
c92620e324
@ -85,16 +85,14 @@ export const TypeModal: React.FC<ModalProps> = ({ opened, onClose }) => {
|
||||
|
||||
return (
|
||||
<Modal title="Generate Types" size="auto" opened={opened} onClose={onClose} centered>
|
||||
<Stack py="sm">
|
||||
<Stack>
|
||||
<Select
|
||||
value={selectedType}
|
||||
data={typeOptions}
|
||||
onChange={e => setSelectedType(e as Language)}
|
||||
/>
|
||||
<ScrollArea>
|
||||
<ScrollArea h={400} offsetScrollbars>
|
||||
<CodeHighlight
|
||||
miw={350}
|
||||
mah={600}
|
||||
language={editorLanguage}
|
||||
copyLabel="Copy to clipboard"
|
||||
copiedLabel="Copied to clipboard"
|
||||
|
Loading…
x
Reference in New Issue
Block a user