mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
chore: link active to exact
This commit is contained in:
@@ -26,6 +26,7 @@ export function NavItem({
|
|||||||
"text-[var(--less-foreground)] hover:bg-[var(--item-hover)] focus-visible:outline-none focus-visible:ring-0",
|
"text-[var(--less-foreground)] hover:bg-[var(--item-hover)] focus-visible:outline-none focus-visible:ring-0",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
|
activeOptions={{ exact: true }}
|
||||||
activeProps={{
|
activeProps={{
|
||||||
className:
|
className:
|
||||||
'bg-[var(--item-active)] data-[status="active"]:hover:bg-[var(--item-active)]',
|
'bg-[var(--item-active)] data-[status="active"]:hover:bg-[var(--item-active)]',
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ const PageListItem: React.FC<PageListItemProps> = ({ page }) => {
|
|||||||
"group/p cursor-default text-[var(--less-foreground)]",
|
"group/p cursor-default text-[var(--less-foreground)]",
|
||||||
"relative flex h-[30px] w-full items-center gap-2 rounded-md px-1.5 text-sm font-medium hover:bg-[var(--item-hover)]",
|
"relative flex h-[30px] w-full items-center gap-2 rounded-md px-1.5 text-sm font-medium hover:bg-[var(--item-hover)]",
|
||||||
)}
|
)}
|
||||||
|
activeOptions={{ exact: true }}
|
||||||
activeProps={{
|
activeProps={{
|
||||||
className:
|
className:
|
||||||
"bg-[var(--item-active)] data-[status='active']:hover:bg-[var(--item-active)]",
|
"bg-[var(--item-active)] data-[status='active']:hover:bg-[var(--item-active)]",
|
||||||
|
|||||||
Reference in New Issue
Block a user