fix: fixed navbar link tooltips
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import { IconPlus } from "@tabler/icons-react";
|
import { IconPlus } from "@tabler/icons-react";
|
||||||
import { Stack, Tooltip } from "@mantine/core";
|
import { Center, Stack, Tooltip } from "@mantine/core";
|
||||||
import NavbarClickable from "./NavbarClickable";
|
import NavbarClickable from "./NavbarClickable";
|
||||||
|
|
||||||
type LinkData = {
|
type LinkData = {
|
||||||
@ -16,18 +16,22 @@ const NavbarLinks = ({ linksData }: Props) => {
|
|||||||
return (
|
return (
|
||||||
<Stack gap={"xs"}>
|
<Stack gap={"xs"}>
|
||||||
{linksData.map((linkData, index) => (
|
{linksData.map((linkData, index) => (
|
||||||
<Tooltip
|
<NavbarClickable
|
||||||
key={index}
|
href={linkData.href}
|
||||||
display={!linkData.label ? "none" : "flex"}
|
key={linkData.label}>
|
||||||
label={linkData.label}
|
<Tooltip
|
||||||
position="right"
|
key={index}
|
||||||
transitionProps={{ duration: 0 }}>
|
display={!linkData.label ? "none" : "flex"}
|
||||||
<NavbarClickable
|
label={linkData.label}
|
||||||
href={linkData.href}
|
position="right"
|
||||||
key={linkData.label}>
|
transitionProps={{ duration: 0 }}>
|
||||||
<linkData.icon />
|
<Center
|
||||||
</NavbarClickable>
|
w={"100%"}
|
||||||
</Tooltip>
|
h={"100%"}>
|
||||||
|
<linkData.icon />
|
||||||
|
</Center>
|
||||||
|
</Tooltip>
|
||||||
|
</NavbarClickable>
|
||||||
))}
|
))}
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user