From b4c28e5e5706514f0db249c94df8f1e9c7e0b55e Mon Sep 17 00:00:00 2001 From: fosly Date: Sun, 1 Sep 2024 13:39:07 +0700 Subject: [PATCH 1/2] fix: overflow UI --- .vscode/settings.json | 11 +++++++++++ src/pages/index.astro | 10 +++++----- 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..39f6105 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "workbench.colorCustomizations": { + "[One Dark Pro Mix]": { + "activityBar.activeBackground": "#393E46", + "activityBar.activeBorder": "#E7F6F2", + "activityBar.background": "#222831" + }, + "minimap.background": "#00000000", + "scrollbar.shadow": "#00000000" + } +} \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index f7aac72..4065507 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -76,14 +76,14 @@ import SendButton from "../components/send_btn.astro"; } #chat_container { - height: fit-content - max-height: 100%; + height: fit-content; + max-height: calc(100% - 20px); overflow-y: auto; top: 50%; } #chat_box { - height: 80%; - max-height: 100%; + height: calc(90% - (75px + 10px)); + max-height: 90%; display: flex; flex-direction: column; justify-content: flex-end; @@ -91,7 +91,7 @@ import SendButton from "../components/send_btn.astro"; #main_chat_root { height: 100%; width: 100%; - gap: 25px; + gap: 10px; display: flex; flex-direction: column; justify-content: space-between; From 3cc51dd40ee6afb83c4c8ebdb5bf463a2437c37c Mon Sep 17 00:00:00 2001 From: fosly Date: Sun, 1 Sep 2024 13:39:56 +0700 Subject: [PATCH 2/2] fix: overflow UI --- .gitignore | 3 +++ .vscode/settings.json | 11 ----------- 2 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 016b59e..6f359cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # build output dist/ +# vscode +.vscode/ + # generated types .astro/ diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 39f6105..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "workbench.colorCustomizations": { - "[One Dark Pro Mix]": { - "activityBar.activeBackground": "#393E46", - "activityBar.activeBorder": "#E7F6F2", - "activityBar.background": "#222831" - }, - "minimap.background": "#00000000", - "scrollbar.shadow": "#00000000" - } -} \ No newline at end of file