layout sidebar

This commit is contained in:
Anton Tranelis 2025-10-12 12:32:13 +02:00
parent 903469eb51
commit aba99d5d50

View File

@ -78,7 +78,8 @@ export function SideBar({ routes, bottomRoutes }: { routes: Route[]; bottomRoute
{(location.pathname.includes(route.path) && route.path.length > 1) ||
location.pathname === route.path ? (
<span
className='tw:absolute tw:inset-y-0 tw:left-0 tw:w-1 tw:rounded-tr-md tw:rounded-br-md tw:bg-primary '
className='tw:absolute tw:inset-y-0 tw:left-0 tw:w-1 tw:rounded-tr-md tw:rounded-br-md'
style={{ backgroundColor: route.color ?? '#777' }}
aria-hidden='true'
></span>
) : null}