Skip to content

Commit cc9cbb1

Browse files
committed
Fixing column width, making table columns equal
1 parent 21c3dee commit cc9cbb1

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/lib/Sidebar.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<script lang="ts">
2+
import clsx from 'clsx';
3+
24
interface Props {
5+
className?: string;
36
children?: import('svelte').Snippet;
47
}
58
6-
let { children }: Props = $props();
9+
let { children, className}: Props = $props();
710
</script>
811

9-
<div id="sidebar" class="flex h-full w-1/3 flex-col place-content-stretch gap-4 2xl:w-1/4">
12+
<div id="sidebar" class={clsx("flex h-full w-1/3 flex-col place-content-stretch gap-4 2xl:w-1/4", className)}>
1013
{@render children?.()}
1114
</div>

src/lib/StatsTable.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
const grandfatheringColor = 'text-gray-400';
2626
</script>
2727

28-
<div class="rounded px-12 py-8">
29-
<table class="prose w-full max-w-none table-auto">
28+
<div class="rounded px-12 py-6">
29+
<table class="prose w-full max-w-none table-fixed">
3030
<thead>
3131
<tr>
3232
<th>Allocation method</th>

src/routes/regions/[region]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
</script>
140140

141141
<div class="flex h-full flex-row gap-4">
142-
<Sidebar>
142+
<Sidebar className="min-w-fit">
143143
<GlobalBudgetCard
144144
remaining={data.global.budget.remaining}
145145
relative={data.global.budget.relative}

0 commit comments

Comments
 (0)