Skip to content

Commit

Permalink
feat(Table): limit popover max height
Browse files Browse the repository at this point in the history
  • Loading branch information
tapo4ek committed Sep 26, 2024
1 parent 12fc6c8 commit c3adeb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/TableSettings/TableSettings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
$block: '.#{variables.$ns}table-settings';

#{$block} {
max-height: 90vh;
display: flex;
flex-direction: column;

&__popover-content {
padding: var(--g-spacing-1);
margin-block: -10px;
margin-block-end: -10px;
overflow: auto;
}

&__popover-actions {
Expand Down
1 change: 1 addition & 0 deletions src/components/TableSettings/TableSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export const TableSettings = <TData extends unknown>({
onClose={() => setOpen(false)}
anchorRef={anchorRef}
placement={POPUP_PLACEMENT}
contentClassName={b()}
>
<div className={b('popover-content')}>
<DndContext
Expand Down

0 comments on commit c3adeb9

Please sign in to comment.