Skip to content

Commit

Permalink
Support small table row height (#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
monadav authored Aug 27, 2024
1 parent dc52964 commit 81d04aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/components/Table/Table/TableConsts.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
export const SKELETON_ROWS_AMOUNT = 5;

export enum RowSizes {
SMALL = "small",
MEDIUM = "medium",
LARGE = "large"
}

export const RowHeights = {
[RowSizes.SMALL]: 32,
[RowSizes.MEDIUM]: 40,
[RowSizes.LARGE]: 48
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
justify-content: center;
padding-inline: var(--spacing-small);

&.small {
padding-block: var(--spacing-xs);
}

&.medium {
padding-block: var(--spacing-small);
}
Expand Down

0 comments on commit 81d04aa

Please sign in to comment.