Skip to content

Commit 69e7427

Browse files
authored
add a sidebar trigger to the activity page to prevent getting stuck on mobile (#1751)
1 parent 9aba5c4 commit 69e7427

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/viewer/src/lib/activity/ActivityView.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import { t } from 'svelte-i18n-lingui';
66
import { useProjectContext } from '$lib/project-context.svelte';
77
import { resource } from 'runed';
8+
import {SidebarTrigger} from '$lib/components/ui/sidebar';
89
910
const historyService = useHistoryService();
1011
const projectContext = useProjectContext();
@@ -52,6 +53,8 @@
5253
{#if !activity.loading}
5354
<div class="m-4 grid gap-x-6 gap-y-1 overflow-hidden"
5455
style="grid-template-rows: auto minmax(0,100%); minmax(min-content, 1fr) minmax(min-content, 2fr)">
56+
57+
<SidebarTrigger icon="i-mdi-menu" iconProps={{ class: 'size-5' }} class="aspect-square p-0" size="xs"/>
5558
<div class="flex flex-col gap-4 overflow-hidden row-start-2">
5659
<div class="border rounded-md overflow-y-auto">
5760
{#if activity.current.length === 0}

0 commit comments

Comments
 (0)