diff --git a/scripts/regressions.mjs b/scripts/regressions.mjs index ff70744..c7e3b25 100644 --- a/scripts/regressions.mjs +++ b/scripts/regressions.mjs @@ -759,6 +759,76 @@ try { assert.ok(!(await page.evaluate(() => document.body.innerText)).includes('vcf-app-secret'), 'the entered CardDAV password echoed back in the UI') console.log('PASS: Settings → CardDAV lists address books, prefills a username-composed Nextcloud home, and round-trips connect/sync/test without echoing secrets') + // Mobile pass (390x844): the shell becomes a drawer, tables become cards, + // rail screens become master-detail, and NO screen may overflow the + // viewport horizontally. A separate context keeps the desktop session and + // its assertions untouched. + const mobileContext = await browser.newContext({ viewport: { width: 390, height: 844 }, timezoneId: 'America/Chicago' }) + const mobile = await mobileContext.newPage() + mobile.on('pageerror', error => errors.push(error.message)) + await fixtureLogin(mobileContext) + const noOverflow = async (label) => { + const ok = await mobile.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth + 1) + assert.ok(ok, `${label} overflows the phone viewport horizontally`) + } + const drawerClosed = async () => { + const box = await mobile.locator('aside').boundingBox() + return box !== null && box.x + box.width <= 1 + } + + // Drawer: off-canvas by default, hamburger opens it, navigating closes it. + await mobile.goto(`${base}/pages`) + await mobile.locator('[data-page-editor]').waitFor() + assert.ok(await drawerClosed(), 'sidebar must start off-canvas on phones') + await noOverflow('pages') + await mobile.getByRole('button', { name: 'Open navigation' }).click() + await eventually(async () => !await drawerClosed(), 'navigation drawer did not open') + await mobile.getByRole('link', { name: 'All Bookmarks', exact: true }).click() + await mobile.waitForURL('**/bookmarks') + await eventually(drawerClosed, 'navigation drawer did not close after navigating') + + // Bookmarks: the table swaps to tappable cards; the detail sheet still opens. + await eventually(() => mobile.locator('tbody tr').count().then(n => n === 0), 'bookmarks table must swap to cards on phones') + await mobile.getByText('Fixture 000', { exact: true }).first().waitFor() + await noOverflow('bookmarks') + await mobile.getByText('Fixture 000', { exact: true }).first().click() + await mobile.getByLabel('URL', { exact: true }).waitFor() + await mobile.keyboard.press('Escape') + + // Tags: master-detail — list first, tap a tag for its bookmarks, Back returns. + await mobile.goto(`${base}/tags`) + await mobile.getByPlaceholder('New tag').waitFor() + await noOverflow('tags list') + await mobile.getByText('First tag', { exact: true }).click() + await mobile.getByText('Bookmarks tagged:', { exact: false }).waitFor() + await noOverflow('tag detail') + await mobile.getByRole('button', { name: 'Back', exact: true }).click() + await mobile.getByPlaceholder('New tag').waitFor() + + // Settings: the 12-tab strip scrolls inside its own container; deep tabs + // remain reachable and the page itself never overflowed. + await mobile.goto(`${base}/settings`) + await mobile.getByRole('tab', { name: 'WebDAV' }).scrollIntoViewIfNeeded() + await mobile.getByRole('tab', { name: 'WebDAV' }).click() + await mobile.getByText('House docs').first().waitFor() + await noOverflow('settings') + + // Kanban columns fit a phone (peek of the next column, horizontal scroll). + await mobile.goto(`${base}/kanban`) + await mobile.locator('[data-column-id="inbox"]').waitFor() + const colBox = await mobile.locator('[data-column-id="inbox"]').boundingBox() + assert.ok(colBox && colBox.width < 390, 'kanban column must fit the phone viewport') + await noOverflow('kanban') + + // Remaining screens: no horizontal overflow. + for (const path of ['/calendar', '/collections', '/contacts']) { + await mobile.goto(`${base}${path}`) + await new Promise(resolve => setTimeout(resolve, 400)) + await noOverflow(path) + } + await mobileContext.close() + console.log('PASS: mobile shell — drawer nav, bookmark cards, master-detail rails, scrollable settings tabs, no horizontal overflow on any screen') + // Revocation failure path (review CR-02): when Go's revocation fails, the // local sign-out still completes, but the UI must say so — local cookie // removal is not confirmed global revocation, and other sessions survive. diff --git a/web/app/(app)/bookmarks/client.tsx b/web/app/(app)/bookmarks/client.tsx index e982fdd..a95e79a 100644 --- a/web/app/(app)/bookmarks/client.tsx +++ b/web/app/(app)/bookmarks/client.tsx @@ -9,6 +9,7 @@ import { ExternalLink, Search, Trash2, ChevronUp, ChevronDown, Inbox, Share2 } f import { toast } from 'sonner' import type { Bookmark } from '@/components/app-shell' import { fetchBookmarks } from '@/lib/bookmarks' +import { useIsMobile } from '@/lib/use-media-query' export function BookmarksClient({ initialSearch = null, initialOpen = null }: { initialSearch?: string | null; initialOpen?: string | null }) { const [bookmarks, setBookmarks] = useState([]) @@ -31,6 +32,7 @@ export function BookmarksClient({ initialSearch = null, initialOpen = null }: { const [tab, setTab] = useState<'mine' | 'shared'>('mine') const [sortField, setSortField] = useState<'title' | 'updatedAt' | 'kanbanStatus'>('updatedAt') const [sortDir, setSortDir] = useState<'asc' | 'desc'>('desc') + const isMobile = useIsMobile() // Debounced, abortable, sequence-guarded load: a slow response for an older // query can never overwrite newer results (same discipline as pages client). @@ -100,6 +102,14 @@ export function BookmarksClient({ initialSearch = null, initialOpen = null }: { else { setSortField(field); setSortDir('asc') } } + const trashBookmark = async (b: Bookmark) => { + if (!confirm('Move this bookmark to the trash? It can be restored.')) return + try { + const res = await fetch(`/api/bookmarks/${b.id}`, { method: 'DELETE' }) + if (res.ok) { toast.success('Moved to trash'); load() } else toast.error('Could not move bookmark to trash') + } catch { toast.error('Could not move bookmark to trash') } + } + const sortIcon = (field: typeof sortField) => { if (sortField !== field) return null return sortDir === 'asc' ? : @@ -125,66 +135,108 @@ export function BookmarksClient({ initialSearch = null, initialOpen = null }: { -
-
- - - - - - - - - - - - - {loading ? ( - - ) : sorted.length === 0 ? ( - - ) : sorted.map((b: Bookmark) => ( - setSelected(b)} onKeyDown={e => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); setSelected(b) } }}> - - - - - - - - ))} - -
toggleSort('title')}> - Title {sortIcon('title')} - URLTags toggleSort('kanbanStatus')}> - Status {sortIcon('kanbanStatus')} - toggleSort('updatedAt')}> - Updated {sortIcon('updatedAt')} - Actions
Loading...
No bookmarks found
-
- {b.favicon && { e.target.style.display = 'none' }} />} - {b.title ?? 'Untitled'} -
-
- e.stopPropagation()} className="text-primary hover:underline truncate max-w-[200px] block"> - {(() => { try { return new URL(b.url).hostname } catch { return b.url } })()} - - -
- {(b.tags ?? []).slice(0, 2).map((bt: any) => ( - {bt?.tag?.name} - ))} -
-
{b.kanbanStatus?.replace('_', ' ')}{new Date(b.updatedAt).toLocaleDateString('en-US', { month: 'short', day: 'numeric', timeZone: 'UTC' })} -
e.stopPropagation()}> - - {tab === 'mine' && ( - - )} -
-
+ {isMobile ? ( +
+ {loading ? ( +

Loading...

+ ) : sorted.length === 0 ? ( +

No bookmarks found

+ ) : sorted.map((b: Bookmark) => ( +
setSelected(b)} + onKeyDown={e => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); setSelected(b) } }} + > +
+ {b.favicon && { e.target.style.display = 'none' }} />} + +
e.stopPropagation()}> + + {tab === 'mine' && ( + + )} +
+
+
+ {b.kanbanStatus?.replace('_', ' ')} + {(b.tags ?? []).slice(0, 3).map((bt: any) => ( + {bt?.tag?.name} + ))} + {new Date(b.updatedAt).toLocaleDateString('en-US', { month: 'short', day: 'numeric', timeZone: 'UTC' })} +
+
+ ))}
-
+ ) : ( +
+
+ + + + + + + + + + + + + {loading ? ( + + ) : sorted.length === 0 ? ( + + ) : sorted.map((b: Bookmark) => ( + setSelected(b)} onKeyDown={e => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); setSelected(b) } }}> + + + + + + + + ))} + +
toggleSort('title')}> + Title {sortIcon('title')} + URLTags toggleSort('kanbanStatus')}> + Status {sortIcon('kanbanStatus')} + toggleSort('updatedAt')}> + Updated {sortIcon('updatedAt')} + Actions
Loading...
No bookmarks found
+
+ {b.favicon && { e.target.style.display = 'none' }} />} + {b.title ?? 'Untitled'} +
+
+ e.stopPropagation()} className="text-primary hover:underline truncate max-w-[200px] block"> + {(() => { try { return new URL(b.url).hostname } catch { return b.url } })()} + + +
+ {(b.tags ?? []).slice(0, 2).map((bt: any) => ( + {bt?.tag?.name} + ))} +
+
{b.kanbanStatus?.replace('_', ' ')}{new Date(b.updatedAt).toLocaleDateString('en-US', { month: 'short', day: 'numeric', timeZone: 'UTC' })} +
e.stopPropagation()}> + + {tab === 'mine' && ( + + )} +
+
+
+
+ )} setSelected(null)} onUpdate={() => { load(); void refreshSelected() }} />
) diff --git a/web/app/(app)/calendar/client.tsx b/web/app/(app)/calendar/client.tsx index c0a21e1..aeb6f78 100644 --- a/web/app/(app)/calendar/client.tsx +++ b/web/app/(app)/calendar/client.tsx @@ -124,7 +124,7 @@ export function CalendarClient() {
{['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].map(d => ( -
{d}
+
{d[0]}{d}
))} {Array.from({ length: startDayOfWeek }).map((_, i) => (
@@ -144,7 +144,7 @@ export function CalendarClient() { aria-label={format(day, 'EEEE, MMMM d, yyyy')} onClick={() => setSelectedDay(day)} onKeyDown={e => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); setSelectedDay(day) } }} - className={`bg-card min-h-[80px] p-1.5 cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-primary ${ + className={`bg-card min-h-[64px] p-1 sm:min-h-[80px] sm:p-1.5 cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-primary ${ isSelected ? 'ring-2 ring-primary ring-inset' : '' }`} > diff --git a/web/app/(app)/collections/client.tsx b/web/app/(app)/collections/client.tsx index 8febb8e..29ec06a 100644 --- a/web/app/(app)/collections/client.tsx +++ b/web/app/(app)/collections/client.tsx @@ -11,7 +11,8 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table' -import { CalendarDays, Columns3, Filter, GripVertical, Kanban, Layers, List, Plus, Share2, Table2, Trash2, X } from 'lucide-react' +import { useIsMobile } from '@/lib/use-media-query' +import { ArrowLeft, CalendarDays, Columns3, Filter, GripVertical, Kanban, Layers, List, Plus, Share2, Table2, Trash2, X } from 'lucide-react' import { toast } from 'sonner' import type { Bookmark } from '@/components/app-shell' import { cn } from '@/lib/utils' @@ -219,6 +220,7 @@ function ValueEditor({ prop, value, onSave, readOnly = false }: { prop: Collecti export function CollectionsClient() { const [collections, setCollections] = useState([]) const [activeId, setActiveId] = useState(null) + const isMobile = useIsMobile() const [detail, setDetail] = useState(null) const [items, setItems] = useState([]) const [cursor, setCursor] = useState(null) @@ -292,10 +294,10 @@ export function CollectionsClient() { useEffect(() => { const t = setTimeout(loadCollections, 0); return () => clearTimeout(t) }, [loadCollections]) useEffect(() => { const t = setTimeout(() => { - if (!activeId && collections.length) setActiveId(collections[0].id) + if (!activeId && collections.length && !isMobile) setActiveId(collections[0].id) }, 0) return () => clearTimeout(t) - }, [collections, activeId]) + }, [collections, activeId, isMobile]) useEffect(() => { const t = setTimeout(() => { if (!activeId) { detailSeq.current++; setDetail(null); return } @@ -664,7 +666,7 @@ export function CollectionsClient() { setBoardDropKey(null) }} className={cn( - 'w-64 shrink-0 rounded-lg border border-border/60 bg-muted/30 p-2 transition-[box-shadow,background-color,border-color] duration-150', + 'w-[85vw] max-w-64 shrink-0 rounded-lg border border-border/60 bg-muted/30 p-2 transition-[box-shadow,background-color,border-color] duration-150 sm:w-64 sm:max-w-none', isDropTarget && 'border-primary/40 bg-primary/[0.04] ring-2 ring-primary/40', )} > @@ -744,7 +746,7 @@ export function CollectionsClient() {
{/* Collection list */} -
+

Collections

@@ -776,7 +778,7 @@ export function CollectionsClient() {
{/* Detail */} -
+
{!detail ? (
@@ -787,11 +789,16 @@ export function CollectionsClient() {
) : ( <> + {isMobile && ( + + )}
{readOnly ? ( - {detail.name} + {detail.name} ) : ( - setNameDraft(e.target.value)} onBlur={saveName} onKeyDown={(e) => { if (e.key === 'Enter') (e.target as HTMLInputElement).blur() }} aria-label="Collection name" className="w-72 bg-transparent font-display text-2xl font-bold tracking-tight" /> + setNameDraft(e.target.value)} onBlur={saveName} onKeyDown={(e) => { if (e.key === 'Enter') (e.target as HTMLInputElement).blur() }} aria-label="Collection name" className="w-full bg-transparent font-display text-2xl font-bold tracking-tight sm:w-72" /> )} {detail._count?.items ?? 0} item{(detail._count?.items ?? 0) === 1 ? '' : 's'} {readOnly ? ( diff --git a/web/app/(app)/contacts/client.tsx b/web/app/(app)/contacts/client.tsx index 2eb6c83..3d616cf 100644 --- a/web/app/(app)/contacts/client.tsx +++ b/web/app/(app)/contacts/client.tsx @@ -4,8 +4,10 @@ import { useState, useEffect, useCallback } from 'react' import { Button } from '@/components/ui/button' import { BookmarkCard } from '@/components/bookmark-card' import { BookmarkDetailSheet } from '@/components/bookmark-detail-sheet' -import { Users, RefreshCw, Mail, Phone } from 'lucide-react' +import { ArrowLeft, Users, RefreshCw, Mail, Phone } from 'lucide-react' import { toast } from 'sonner' +import { useIsMobile } from '@/lib/use-media-query' +import { cn } from '@/lib/utils' import type { Bookmark } from '@/components/app-shell' import { fetchBookmarks } from '@/lib/bookmarks' @@ -21,6 +23,7 @@ interface Contact { export function ContactsClient() { const [contacts, setContacts] = useState([]) const [selectedContact, setSelectedContact] = useState(null) + const isMobile = useIsMobile() const [bookmarks, setBookmarks] = useState([]) const [selectedBookmark, setSelectedBookmark] = useState(null) const [syncing, setSyncing] = useState(false) @@ -51,8 +54,8 @@ export function ContactsClient() { } return ( -
-
+
+

Contacts

-
+
{selectedContact ? (
+ {isMobile && ( + + )}

Bookmarks for {contacts.find(c => c.id === selectedContact)?.displayName}

{bookmarks.length === 0 ? (

No bookmarks linked to this contact

diff --git a/web/app/(app)/kanban/client.tsx b/web/app/(app)/kanban/client.tsx index 929c1ea..84f3aa7 100644 --- a/web/app/(app)/kanban/client.tsx +++ b/web/app/(app)/kanban/client.tsx @@ -281,7 +281,7 @@ export function KanbanClient() { )}
-
+
{columns.map((col, idx) => { const colBookmarks = cardsByColumn[col.id] ?? [] const isCardTarget = !!draggedId && cardDrop?.columnId === col.id @@ -291,7 +291,7 @@ export function KanbanClient() { key={col.id} data-column-id={col.id} className={cn( - 'rounded-lg border bg-muted/30 flex flex-col w-72 shrink-0 transition-[box-shadow,background-color,border-color] duration-150', + 'rounded-lg border bg-muted/30 flex flex-col w-[85vw] max-w-72 shrink-0 transition-[box-shadow,background-color,border-color] duration-150 sm:w-72 sm:max-w-none', isCardTarget && 'bg-primary/[0.04] border-primary/30 shadow-sm', isColumnTarget && 'ring-2 ring-primary/50 border-primary/40', )} diff --git a/web/app/(app)/pages/client.tsx b/web/app/(app)/pages/client.tsx index 1f61991..7d19c1d 100644 --- a/web/app/(app)/pages/client.tsx +++ b/web/app/(app)/pages/client.tsx @@ -475,7 +475,7 @@ export function PagesClient({ initialId }: { initialId: string | null }) {
) : ( -
+
setTitle(e.target.value)} onBlur={saveTitle} onKeyDown={(e) => e.key === 'Enter' && (e.target as HTMLInputElement).blur()} className="min-w-0 flex-1 bg-transparent font-display text-3xl font-bold outline-none" aria-label="Page title" /> {saveState === 'saving' ? 'Saving…' : saveState === 'dirty' ? 'Unsaved' : saveState === 'conflict' ? 'Conflict' : 'Saved'} @@ -502,7 +502,7 @@ export function PagesClient({ initialId }: { initialId: string | null }) { { setPageLinkOpen(open); if (!open) setPageLinkQuery('') }}> - + setPageLinkQuery(e.target.value)} placeholder="Find a page to link" className="h-8 text-sm" />
{pageLinkOptions.map((p) => ( @@ -517,7 +517,7 @@ export function PagesClient({ initialId }: { initialId: string | null }) { - +
{collections.map((c) => ( - + setLinkQuery(e.target.value)} onKeyDown={(e) => e.key === 'Enter' && looksLikeUrl && addUrl()} placeholder="Search bookmarks or paste a URL" className="h-8 text-sm" />
{looksLikeUrl && ( diff --git a/web/app/(app)/settings/client.tsx b/web/app/(app)/settings/client.tsx index c74173a..1e26981 100644 --- a/web/app/(app)/settings/client.tsx +++ b/web/app/(app)/settings/client.tsx @@ -99,7 +99,7 @@ export function SettingsClient({ oidc, callbackUrl }: { oidc: OidcStatus; callba
- + Profile IMAP Nextcloud diff --git a/web/app/(app)/tags/client.tsx b/web/app/(app)/tags/client.tsx index 8f5ccd7..dee77f0 100644 --- a/web/app/(app)/tags/client.tsx +++ b/web/app/(app)/tags/client.tsx @@ -6,8 +6,10 @@ import { Input } from '@/components/ui/input' import { Badge } from '@/components/ui/badge' import { BookmarkCard } from '@/components/bookmark-card' import { BookmarkDetailSheet } from '@/components/bookmark-detail-sheet' -import { Plus, Tags, Trash2, Edit, Check, X } from 'lucide-react' +import { ArrowLeft, Plus, Tags, Trash2, Edit, Check, X } from 'lucide-react' import { toast } from 'sonner' +import { useIsMobile } from '@/lib/use-media-query' +import { cn } from '@/lib/utils' import type { Bookmark, TagWithCount } from '@/components/app-shell' import { fetchBookmarks } from '@/lib/bookmarks' import { invalidateReference } from '@/lib/reference-data' @@ -15,6 +17,7 @@ import { invalidateReference } from '@/lib/reference-data' export function TagsClient({ initialTag = null }: { initialTag?: string | null }) { const [tags, setTags] = useState([]) const [selectedTag, setSelectedTag] = useState(null) + const isMobile = useIsMobile() const [bookmarks, setBookmarks] = useState([]) const [selectedBookmark, setSelectedBookmark] = useState(null) const [newName, setNewName] = useState('') @@ -104,8 +107,8 @@ export function TagsClient({ initialTag = null }: { initialTag?: string | null } } return ( -
-
+
+

Tags

) => setNewName(e.target.value)} className="flex-1" /> @@ -146,9 +149,14 @@ export function TagsClient({ initialTag = null }: { initialTag?: string | null }
-
+
{selectedTag ? (
+ {isMobile && ( + + )}

Bookmarks tagged: t.id === selectedTag)?.color ?? '#6366f1'}20`, color: tags.find(t => t.id === selectedTag)?.color }}>{tags.find(t => t.id === selectedTag)?.name}

{tags.find(t => t.id === selectedTag)?.ownerId === effectiveId &&

Sharing is group-wide: every recipient can see all bookmarks under this tag — including ones other recipients add.

diff --git a/web/app/layout.tsx b/web/app/layout.tsx index 7a9f993..66c0f66 100644 --- a/web/app/layout.tsx +++ b/web/app/layout.tsx @@ -23,6 +23,13 @@ export const metadata = { }, } +// Mobile layout depends on the viewport meta: without it phones render at +// ~980px CSS width and every responsive breakpoint is dead. +export const viewport = { + width: 'device-width', + initialScale: 1, +} + export default function RootLayout({ children }: { children: React.ReactNode }) { return ( diff --git a/web/components/app-shell.tsx b/web/components/app-shell.tsx index 07aaa95..f3662df 100644 --- a/web/components/app-shell.tsx +++ b/web/components/app-shell.tsx @@ -58,6 +58,11 @@ export function AppShell({ children }: { children: React.ReactNode }) { const router = useRouter() const pathname = usePathname() const [sidebarOpen, setSidebarOpen] = useState(true) + // Mobile (([]) @@ -71,6 +76,19 @@ export function AppShell({ children }: { children: React.ReactNode }) { .catch((e) => console.error('Failed to load account info', e)) }, [session?.user]) + // Navigating from the drawer closes it (phone pattern); the desktop rail + // is unaffected because the drawer state is separate. + useEffect(() => { const t = setTimeout(() => setMobileNavOpen(false), 0); return () => clearTimeout(t) }, [pathname]) + + // Crossing into desktop while the drawer is open must not leave a + // label-expanded drawer stuck over the static rail. + useEffect(() => { + const mql = window.matchMedia('(min-width: 1024px)') + const onChange = () => { if (mql.matches) setMobileNavOpen(false) } + mql.addEventListener('change', onChange) + return () => mql.removeEventListener('change', onChange) + }, []) + const exitViewAs = useCallback(async () => { try { await fetch('/api/admin/view-as', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ userId: null }) }) @@ -126,8 +144,19 @@ export function AppShell({ children }: { children: React.ReactNode }) { if (!session?.user) return null return ( -
- setSidebarOpen(!sidebarOpen)} onQuickFind={() => setQuickFindOpen(true)} pathname={pathname} isAdmin={!!me?.isAdmin} /> +
+ {mobileNavOpen && ( +
setMobileNavOpen(false)} /> + )} + setSidebarOpen(!sidebarOpen)} + onCloseMobile={() => setMobileNavOpen(false)} + onQuickFind={() => { setMobileNavOpen(false); setQuickFindOpen(true) }} + pathname={pathname} + isAdmin={!!me?.isAdmin} + />
{me?.viewingAs && (
@@ -140,10 +169,10 @@ export function AppShell({ children }: { children: React.ReactNode }) { alerts={alerts} onDismissAlert={dismissAlert} onAddBookmark={() => setAddDialogOpen(true)} - onToggleSidebar={() => setSidebarOpen(!sidebarOpen)} + onToggleSidebar={() => setMobileNavOpen(!mobileNavOpen)} onQuickFind={() => setQuickFindOpen(true)} /> -
+
{children}
diff --git a/web/components/caldav-settings.tsx b/web/components/caldav-settings.tsx index 5586ad5..6354a49 100644 --- a/web/components/caldav-settings.tsx +++ b/web/components/caldav-settings.tsx @@ -200,9 +200,9 @@ export function CalDavSettings() { const failure = r?.sync && !r.sync.ok ? r.sync.error : r?.test && !r.test.ok ? r.test.error : null return (
  • -
    +
    toggle(c)} aria-label={`Enable ${c.name}`} /> - {c.name} + {c.name} {c.calendars?.length > 0 && {c.calendars.length} calendars}
    }> - +
    - {open && Settings} + {expanded && Settings} - - {open && APP_VERSION && ( + {expanded && APP_VERSION && (

    {APP_VERSION === 'dev' ? 'dev build' : `v${APP_VERSION}`}

    diff --git a/web/components/top-bar.tsx b/web/components/top-bar.tsx index 194ab52..046e107 100644 --- a/web/components/top-bar.tsx +++ b/web/components/top-bar.tsx @@ -114,7 +114,7 @@ export function TopBar({ user, alerts, onDismissAlert, onAddBookmark, onToggleSi return (
    - @@ -157,7 +157,7 @@ export function TopBar({ user, alerts, onDismissAlert, onAddBookmark, onToggleSi New - @@ -172,7 +172,7 @@ export function TopBar({ user, alerts, onDismissAlert, onAddBookmark, onToggleSi )} {showAlerts && ( -
    +

    Alerts

    {notificationPermission === 'default' && (
    -
    +
    {(user?.name ?? user?.email ?? '?')[0]?.toUpperCase()}
    {user?.name ?? user?.email ?? 'User'} diff --git a/web/components/ui/dialog.tsx b/web/components/ui/dialog.tsx index b552952..cdee334 100644 --- a/web/components/ui/dialog.tsx +++ b/web/components/ui/dialog.tsx @@ -38,7 +38,7 @@ const DialogContent = React.forwardRef< -
    +
    toggle(c)} aria-label={`Enable ${c.name}`} /> - {c.name} + {c.name} {c.collectionId && collection}