diff --git a/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.tsx b/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.tsx index e5a95040..9eb54a56 100644 --- a/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.tsx +++ b/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.tsx @@ -1,5 +1,6 @@ import { type KeyboardEvent, type ReactNode, useCallback, useEffect, useMemo, useRef, useState } from 'react'; +import { Badge } from '@/components/ui/badge'; import { ScrollArea } from '@/components/ui/scroll-area'; import { Sheet, SheetContent, SheetHeader, SheetTitle } from '@/components/ui/sheet'; import { cn } from '@/lib/utils'; @@ -252,7 +253,12 @@ export function DetailNavigationSheet({ {sheetIcon} {sheetTitle} - {total} + + {total} + {hasEntries ? ( diff --git a/frontend/src/pages/templates/template.tsx b/frontend/src/pages/templates/template.tsx index 6da70c5a..676f7725 100644 --- a/frontend/src/pages/templates/template.tsx +++ b/frontend/src/pages/templates/template.tsx @@ -22,6 +22,7 @@ import { z } from 'zod'; import ConfirmationDialog from '@/components/shared/confirmation-dialog'; import { DetailNavigationSheet, DetailNavigationToolbar, useNavigation } from '@/components/shared/detail-navigation'; import { InlineEditInput, useInlineEdit } from '@/components/shared/inline-edit'; +import { Badge } from '@/components/ui/badge'; import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage } from '@/components/ui/breadcrumb'; import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; @@ -680,9 +681,12 @@ const Template = () => { Preset templates - + {PRESET_TEMPLATES.length} - + {/* Plain overflow-y-auto instead of Radix ScrollArea — @@ -707,9 +711,12 @@ const Template = () => {

Preset templates - + {PRESET_TEMPLATES.length} - +

{asideContent}