1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-23 15:37:59 +01:00

Merge pull request #4801 from h3poteto/feat/tl-title

Add title to sidebar menu
This commit is contained in:
AkiraFukushima 2024-01-25 21:05:34 +09:00 committed by GitHub
commit 58ea78e9a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,6 +85,7 @@ export default function Layout({ children }: LayoutProps) {
selected={router.asPath.includes(page.path)}
onClick={() => router.push(page.path)}
className="sidebar-menu-item text-blue-100"
title={page.title}
>
<ListItemPrefix>{page.icon}</ListItemPrefix>
<span className="sidebar-menu">{page.title}</span>
@ -96,6 +97,7 @@ export default function Layout({ children }: LayoutProps) {
selected={router.asPath.includes(`list_${list.id}`)}
onClick={() => router.push({ pathname: `/accounts/${router.query.id}/list_${list.id}` })}
className="sidebar-menu-item text-blue-100"
title={list.title}
>
<ListItemPrefix>
<FaList />