Apply shared UI and workflow fixes
This commit is contained in:
1 parent
fb22af5272
commit
f208697859
15 files changed
+287
-62
No files matched your search
@@ -4,7 +4,9 @@
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './select';
|
||||
import { SimpleTooltip } from './tooltip';
|
||||
|
||||
let { page, pageSize, pageSizes = [12, 24, 48, 96], pageLength = 0, totalLength = 0, onPaging } = $props();
|
||||
const PAGE_SIZE_OPTIONS = [12, 24, 48, 96];
|
||||
|
||||
let { page, pageSize = 24, pageLength = 0, totalLength = 0, onPaging } = $props();
|
||||
|
||||
const hasPreviousPage = $derived(page > 1);
|
||||
const firstItemIndex = $derived((page - 1) * pageSize + 1);
|
||||
@@ -14,7 +16,7 @@
|
||||
// Passed as `Select`'s `items` prop so the trigger shows the right label immediately, even
|
||||
// before the dropdown has ever been opened - bits-ui can't rely on `Select.Item` having
|
||||
// mounted to the DOM yet to read its label back off of it.
|
||||
const pageSizeItems = $derived(pageSizes.map((size) => ({ value: String(size), label: String(size) })));
|
||||
const pageSizeItems = PAGE_SIZE_OPTIONS.map((size) => ({ value: String(size), label: String(size) }));
|
||||
</script>
|
||||
|
||||
<div class="flex flex-wrap items-center justify-end gap-4 px-2 py-3 text-sm">
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
let { children } = $props();
|
||||
const auth = createAuthStore();
|
||||
const navItems = [
|
||||
{ href: '/', label: 'Overview' },
|
||||
{ href: '/about', label: 'About' },
|
||||
{ href: '/', label: 'Overview', icon: 'layout-dashboard', description: 'Browse shared tables and collaborate on structured data.' },
|
||||
{ href: '/about', label: 'About', icon: 'info', description: 'Learn about CollabTable and its collaboration features.' },
|
||||
];
|
||||
let settingsOpen = $state(false);
|
||||
let credentialsOpen = $state(false);
|
||||
|
||||
Reference in new issue
Block a user