mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-05 09:05:27 +00:00
layout sidebar
This commit is contained in:
parent
903469eb51
commit
aba99d5d50
@ -78,7 +78,8 @@ export function SideBar({ routes, bottomRoutes }: { routes: Route[]; bottomRoute
|
|||||||
{(location.pathname.includes(route.path) && route.path.length > 1) ||
|
{(location.pathname.includes(route.path) && route.path.length > 1) ||
|
||||||
location.pathname === route.path ? (
|
location.pathname === route.path ? (
|
||||||
<span
|
<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'
|
aria-hidden='true'
|
||||||
></span>
|
></span>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user