Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(Table): add ability to redefine max height for menu popup
  • Loading branch information
leushin committed Mar 16, 2026
commit b937b0e2777c28a2f2cba10e47f8cde525736a54
6 changes: 6 additions & 0 deletions src/components/Table/README-ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ import {Table} from '@gravity-ui/uikit';
| rowActionsSize | Размер кнопки действия и элементов всплывающего меню. | `"s"` `"m"` `"l"` `"xl"` |
| rowActionsIcon | Пользовательский значок для ячейки действий. | `React.ReactNode` |

### CSS API

| Имя | Описание |
| :--------------------------------------- | :-------------------------------------------------------------------------------------------------------------------- |
| `--g-table-action-popup-menu-max-height` | Максимальная высота всплывающего меню действий. По умолчанию: `200px`. Можно задать `none`, чтобы убрать ограничение. |

### TableActionConfig

```ts
Expand Down
6 changes: 6 additions & 0 deletions src/components/Table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ This HOC adds a special column with actions to table columns.
| rowActionsSize | Size of the action button and popup menu items | `"s"` `"m"` `"l"` `"xl"` |
| rowActionsIcon | Custom Icon for Actions Cell | `React.ReactNode` |

### CSS API

| Name | Description |
| :--------------------------------------- | :-------------------------------------------------------------------------------------- |
| `--g-table-action-popup-menu-max-height` | Max height of the actions popup menu. Default: `200px`. Use `none` to remove the limit. |

### TableActionConfig

```ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
$popupBlock: '#{variables.$block}-action-popup';

#{$popupBlock} {
--_--menu-max-height: 200px;

&__menu {
@include mixins.max-height(200px);
max-height: var(--g-table-action-popup-menu-max-height, var(--_--menu-max-height));
overflow-y: auto;

&-item {
@include mixins.max-text-width(250px);
Expand Down
Loading