From 9ddab63a6a3223108c9604f003efc5cce0ac6c64 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Wed, 2 Oct 2024 17:08:12 -0400 Subject: [PATCH] hide actions in mobile layout --- packages/frontend/src/pages/following-feed.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/pages/following-feed.vue b/packages/frontend/src/pages/following-feed.vue index 042eb7864f..6ebc46024a 100644 --- a/packages/frontend/src/pages/following-feed.vue +++ b/packages/frontend/src/pages/following-feed.vue @@ -169,12 +169,12 @@ const userNotesPagination: Paging<'users/notes'> = { })), }; -const headerActions: PageHeaderItem[] = [ +const headerActions = computed(() => isWideViewport.value ? [ { icon: 'ti ti-refresh', text: i18n.ts.reload, handler: () => reload(), - }, + } satisfies PageHeaderItem, { icon: 'ti ti-dots', text: i18n.ts.options, @@ -191,9 +191,8 @@ const headerActions: PageHeaderItem[] = [ }, ], ev.currentTarget ?? ev.target); }, - }, - -]; + } satisfies PageHeaderItem, +] : []); const headerTabs = computed(() => [ {