Skip to content

Commit

Permalink
Fix delete button problems
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianruesch committed Dec 27, 2023
1 parent b5582b8 commit 9caa0e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 12 additions & 9 deletions src/components/BacklogView/Issue/DeleteButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export function DeleteButton({
}, [mounted, hovered])

return (
<Box ref={ref} style={{ position: "absolute", bottom: 5, right: 11 }}>
<Box style={{ position: "absolute", bottom: 0, right: 11 }}>
<Transition
mounted={mounted}
mounted={mounted || hovered}
transition="fade"
duration={200}
timingFunction="ease"
Expand All @@ -37,6 +37,7 @@ export function DeleteButton({
withArrow
shadow="md"
opened={issuePopoverOpened}
withinPortal={false}
onChange={setIssuePopoverOpened}
>
<Popover.Target>
Expand All @@ -58,13 +59,15 @@ export function DeleteButton({
background: colorScheme === "dark" ? theme.colors.dark[7] : theme.white,
})}
>
<div style={{
height: "20px",
position: "absolute",
width: "inherit",
left: "0px",
top: "-10px",
}} />
<Box
ref={ref}
h="20px"
w="inherit"
left="0px"
top="-10px"
pos="absolute"
onClick={(e) => e.stopPropagation()}
/>
<DeleteIssueAlert
issueKey={issueKey}
cancelAlert={() => setIssuePopoverOpened(false)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/BacklogView/Issue/IssueCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function IssueCard({
<DeleteButton mounted={hovered} issueKey={issueKey} />
<Grid
columns={100}
p={3}
p={10}
style={{
borderRadius: theme.radius.sm,
margin: 0,
Expand Down

0 comments on commit 9caa0e3

Please sign in to comment.