Skip to content

Commit 202f5dc

Browse files
committed
fix(id): prevent textarea overflow
1 parent e618c45 commit 202f5dc

File tree

1 file changed

+4
-4
lines changed
  • packages/frontend/src/utilities/generators

1 file changed

+4
-4
lines changed

packages/frontend/src/utilities/generators/id.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const IdAnalyzer = () => {
175175
trigger({ input });
176176
}, [input, trigger]);
177177
return (
178-
<div className="flex flex-col gap-4 bg-card p-3 rounded-lg">
178+
<div className="flex flex-col gap-4 bg-card p-3 rounded-lg h-full overflow-hidden">
179179
<div className="flex items-center gap-1 mb-2">
180180
<span className="text-sm font-medium text-card-foreground mr-2">
181181
<Trans>Input:</Trans>
@@ -260,7 +260,7 @@ const IdAnalyzer = () => {
260260
className="bg-background border-input text-foreground"
261261
/>
262262

263-
<div className="space-y-3 mt-2">
263+
<div className="space-y-3 mt-2 flex-grow overflow-y-auto min-h-0">
264264
<FieldWithCopy
265265
label={t(msg`Standard String Format`)}
266266
value={data?.uuid}
@@ -406,7 +406,7 @@ const IdGenerator = () => {
406406
}
407407
}, []);
408408
return (
409-
<div className="flex flex-col gap-3 bg-card p-3 rounded-lg">
409+
<div className="flex flex-col gap-3 bg-card p-3 rounded-lg h-full overflow-hidden">
410410
<h2 className="text-md font-semibold text-card-foreground">
411411
<Trans>Generate new IDs</Trans>
412412
</h2>
@@ -485,7 +485,7 @@ const IdGenerator = () => {
485485
}
486486
readOnly
487487
placeholder={t(msg`Generated IDs will appear here`)}
488-
className="flex-grow bg-background border-input text-foreground font-mono text-sm resize-none"
488+
className="flex-grow bg-background border-input text-foreground font-mono text-sm resize-none min-h-0 overflow-auto"
489489
spellCheck="false"
490490
/>
491491
</div>

0 commit comments

Comments
 (0)