Skip to content

Commit 45f32b6

Browse files
committed
ui(fix): set max height to error message
1 parent 82a4313 commit 45f32b6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: .changeset/small-oranges-cheat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"treeground": patch
3+
---
4+
5+
ui(fix): set max height to error message

Diff for: src/components/TreeGround.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,15 @@ function App() {
212212
<Show when={error()}>
213213
{(err) => (
214214
<div class="fixed inset-0 bg-black/50 flex items-center justify-center z-50">
215-
<div class="bg-white rounded-lg min-w-[calc(100vw*0.75)]">
215+
<div class="bg-white rounded-lg min-w-[calc(100vw*0.80)] max-w-[calc(100vw*0.90)] max-h-[calc(100vh*0.90)] flex flex-col">
216216
<div class="flex justify-end p-2 border-b border-gray-300">
217217
<AiFillCloseCircle
218218
size={28}
219219
class="text-gray-500 hover:text-blue-500 active:scale-110 transition-all cursor-pointer"
220220
onclick={() => setError(null)}
221221
/>
222222
</div>
223-
<div class="p-3">
223+
<div class="p-3 flex-grow max-h-full flex flex-col overflow-hidden">
224224
<div class="my-2 flex gap-1 align-top">
225225
<AiFillQuestionCircle size={22} class="text-red-500" />
226226
<p class="font-bold m-0">

0 commit comments

Comments
 (0)