Skip to content

Commit 7e798dd

Browse files
committed
refactor: clean up comments in AppSidebar and DashboardLayout components for clarity
1 parent 1b3477a commit 7e798dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

services/frontend/src/components/AppSidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ onMounted(() => {
119119
</script>
120120

121121
<template>
122-
<Sidebar :variant="props.variant" :class="$attrs.class" collapsible="icon"> {/* Defaulting to collapsible icon, can be prop */}
122+
<Sidebar :variant="props.variant" :class="$attrs.class" collapsible="icon">
123123
<SidebarHeader>
124124
<SidebarMenu>
125125
<SidebarMenuItem>
@@ -179,7 +179,7 @@ onMounted(() => {
179179
</SidebarMenu>
180180
</SidebarHeader>
181181

182-
<SidebarContent> {/* This should be scrollable by default if content overflows */}
182+
<SidebarContent>
183183
<SidebarGroup>
184184
<SidebarGroupLabel>{{ t('sidebar.navigation.title', 'Navigation') }}</SidebarGroupLabel>
185185
<SidebarGroupContent>

services/frontend/src/components/DashboardLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ const sidebarStyle = computed(() => ({
2828
<template>
2929
<div class="flex h-screen w-full overflow-hidden"> {/* Ensure full screen and no body scroll */}
3030
<SidebarProvider :default-open="defaultOpen" :style="sidebarStyle">
31-
<AppSidebar variant="inset" /> {/* AppSidebar needs to handle this variant prop */}
31+
<AppSidebar variant="inset" />
3232
<SidebarInset>
3333
<!-- SiteHeader equivalent -->
3434
<header class="sticky top-0 z-30 flex h-16 items-center justify-between gap-4 border-b bg-background px-4 sm:px-6">
3535
<div class="flex items-center gap-2">
36-
<SidebarTrigger class="-ml-1 lg:hidden" /> {/* Trigger for mobile/collapsible, hidden on lg if sidebar is always inset */}
36+
<SidebarTrigger class="-ml-1 lg:hidden" />
3737
<h1 class="text-lg font-semibold md:text-xl">{{ props.title }}</h1>
3838
</div>
3939
<!-- Add other header elements like user menu, search, etc. here if needed -->

0 commit comments

Comments
 (0)