Skip to content

Commit

Permalink
Fix clickability of Hide buttons when using datatable-negative-margin…
Browse files Browse the repository at this point in the history
…-top and HideableSection together
  • Loading branch information
dumbmatter committed Feb 7, 2025
1 parent 590e350 commit 269f438
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
uneven number of games from schedule with 80 games and 60 div games https://discord.com/channels/290013534023057409/290015591216054273/1336156359091163197

export bug https://discord.com/channels/290013534023057409/290015591216054273/1335186753593802763

show # of teams in each division when making expansion draft https://old.reddit.com/r/BasketballGM/comments/1iingd3/i_added_a_bunch_of_expansion_teams_but_added_too/

https://www.compart.com/en/unicode/U+1F3C6 rather than ring
Expand Down
3 changes: 2 additions & 1 deletion src/ui/components/HideableSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const HideableSection = ({
titleExtraKey,
);

// z-index of 1 ensures that it is still clickable when used with datatable-negative-margin-top
return (
<>
<div
Expand All @@ -80,7 +81,7 @@ const HideableSection = ({
{renderTitle ? (
renderTitle(show, hideableSectionButton)
) : (
<div className="d-flex" style={{ minWidth: 0 }}>
<div className="d-flex z-1" style={{ minWidth: 0 }}>
<h2 className="mb-0 text-truncate">{title}</h2>
{hideableSectionButton}
</div>
Expand Down

0 comments on commit 269f438

Please sign in to comment.