summaryrefslogtreecommitdiffhomepage
path: root/src/features/tabs
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-28 20:44:53 +0900
committerAdam Malczewski <[email protected]>2026-06-28 20:44:53 +0900
commit5c5e43ab068e9b70ecb81e4414ea5460ec8d2510 (patch)
tree1ebbedaec494198a1a653f3497f2290dbc10d89e /src/features/tabs
parente5c01aa3640ac430155d96e9802dd523fe461319 (diff)
downloaddispatch-web-5c5e43ab068e9b70ecb81e4414ea5460ec8d2510.tar.gz
dispatch-web-5c5e43ab068e9b70ecb81e4414ea5460ec8d2510.zip
fix(ui): shrink tabs to 40vh and tasks to 30vh fixed height
Diffstat (limited to 'src/features/tabs')
-rw-r--r--src/features/tabs/ui.test.ts4
-rw-r--r--src/features/tabs/ui/TabList.svelte4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/features/tabs/ui.test.ts b/src/features/tabs/ui.test.ts
index b12ca1a..ae2a021 100644
--- a/src/features/tabs/ui.test.ts
+++ b/src/features/tabs/ui.test.ts
@@ -183,7 +183,7 @@ describe("TabList", () => {
expect(region).toHaveClass("flex-col");
});
- it("fixes the tab list region at 60vh so a long set scrolls internally", () => {
+ it("fixes the tab list region at 40vh so a long set scrolls internally", () => {
render(TabList, {
props: {
tabs: sampleTabs,
@@ -196,7 +196,7 @@ describe("TabList", () => {
const tabs = screen.getAllByRole("tab");
const region = tabs[0]?.parentElement;
- expect(region).toHaveClass("h-[60vh]");
+ expect(region).toHaveClass("h-[40vh]");
expect(region).toHaveClass("overflow-y-auto");
});
diff --git a/src/features/tabs/ui/TabList.svelte b/src/features/tabs/ui/TabList.svelte
index dff2583..6d85065 100644
--- a/src/features/tabs/ui/TabList.svelte
+++ b/src/features/tabs/ui/TabList.svelte
@@ -83,9 +83,9 @@
</script>
<div class="flex flex-col gap-2">
- <!-- Single-column vertical tab list. Fixed at 60% of the viewport height so a
+ <!-- Single-column vertical tab list. Fixed at 40% of the viewport height so a
long tab set scrolls inside this region instead of growing the whole sidebar. -->
- <div class="flex h-[60vh] flex-col gap-1 overflow-y-auto pr-1">
+ <div class="flex h-[40vh] flex-col gap-1 overflow-y-auto pr-1">
{#each tabs as tab (tab.conversationId)}
<div
class="flex items-center gap-1.5 rounded px-2 py-1.5 text-sm hover:bg-base-300"