Skip to content

Commit

Permalink
fix tab close icon
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Oct 29, 2023
1 parent 9bef187 commit 93f6ba5
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/components/tabs/BoardTab.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { CloseButton, createStyles, Menu, Tabs, Tooltip } from "@mantine/core";
import {
ActionIcon,
createStyles,
Menu,
Tabs,
Tooltip,
} from "@mantine/core";
import { useClickOutside, useHotkeys, useToggle } from "@mantine/hooks";
import { IconCopy, IconEdit, IconX } from "@tabler/icons-react";
import { useEffect } from "react";
Expand Down Expand Up @@ -85,14 +91,15 @@ export function BoardTab({
className={classes.tab}
value={tab.value}
rightSection={
<CloseButton
component="div"
size={14}
<ActionIcon
onClick={(e) => {
closeTab(tab.value);
e.stopPropagation();
}}
/>
size={14}
>
<IconX />
</ActionIcon>
}
onPointerDown={(e) => {
if (e.button == 0) {
Expand Down

0 comments on commit 93f6ba5

Please sign in to comment.