hide actions in mobile layout

This commit is contained in:
Hazel K 2024-10-02 17:08:12 -04:00
parent 484a39c658
commit 9ddab63a6a

View File

@ -169,12 +169,12 @@ const userNotesPagination: Paging<'users/notes'> = {
})), })),
}; };
const headerActions: PageHeaderItem[] = [ const headerActions = computed(() => isWideViewport.value ? [
{ {
icon: 'ti ti-refresh', icon: 'ti ti-refresh',
text: i18n.ts.reload, text: i18n.ts.reload,
handler: () => reload(), handler: () => reload(),
}, } satisfies PageHeaderItem,
{ {
icon: 'ti ti-dots', icon: 'ti ti-dots',
text: i18n.ts.options, text: i18n.ts.options,
@ -191,9 +191,8 @@ const headerActions: PageHeaderItem[] = [
}, },
], ev.currentTarget ?? ev.target); ], ev.currentTarget ?? ev.target);
}, },
}, } satisfies PageHeaderItem,
] : []);
];
const headerTabs = computed(() => [ const headerTabs = computed(() => [
{ {