fix: align page and pagination spacing
This commit is contained in:
1 parent
4a391392bb
commit
c0a5e29d27
3 files changed
+12
-6
No files matched your search
@@ -122,6 +122,12 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Wide-page setting: lifts the shared shell's default max-width cap on the main content area. */
|
/* Wide-page setting: lifts the shared shell's default max-width cap on the main content area. */
|
||||||
[data-wide-layout='true'] .sc-main {
|
[data-wide-layout='true'] .sc-main {
|
||||||
width: calc(100% - 2rem);
|
width: calc(100% - 2rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The shared paginator adds separation when it follows content directly. Inside the overview
|
||||||
|
card, the card padding provides that spacing and keeps the top and bottom insets balanced. */
|
||||||
|
.pagination-card .sc-pagination {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex-1 space-y-4 py-4">
|
<div class="flex-1 space-y-4 pb-4">
|
||||||
<div class="grid grid-cols-2 gap-4 sm:grid-cols-4">
|
<div class="grid grid-cols-2 gap-4 sm:grid-cols-4">
|
||||||
<div class="rounded-lg border border-border bg-surface p-3">
|
<div class="rounded-lg border border-border bg-surface p-3">
|
||||||
<div class="text-xs text-muted-fg">Lists</div>
|
<div class="text-xs text-muted-fg">Lists</div>
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section class="rounded-lg border border-border bg-surface">
|
<section class="pagination-card rounded-lg border border-border bg-surface p-3">
|
||||||
<Pagination
|
<Pagination
|
||||||
{page}
|
{page}
|
||||||
{pageSize}
|
{pageSize}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
const pageItems = $derived(listItems.slice((page - 1) * pageSize, (page - 1) * pageSize + pageSize));
|
const pageItems = $derived(listItems.slice((page - 1) * pageSize, (page - 1) * pageSize + pageSize));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="space-y-4 py-4">
|
<div class="space-y-4 pb-4">
|
||||||
<div class="flex min-w-0 items-center gap-3">
|
<div class="flex min-w-0 items-center gap-3">
|
||||||
<Button type="button" variant="secondary" size="sm" class="shrink-0" onclick={goBack}>
|
<Button type="button" variant="secondary" size="sm" class="shrink-0" onclick={goBack}>
|
||||||
<ArrowLeft class="size-4" />
|
<ArrowLeft class="size-4" />
|
||||||
|
|||||||
Reference in new issue
Block a user