Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .changeset/icy-horses-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@drivenets/design-system': patch
---

Fix virtual table height by filling parent element height
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $bulk-actions-reserved-space: 80px;
background: var(--background);
display: flex;
flex-direction: column;
height: 100%;
max-height: 100%;
overflow: hidden;
}
Expand Down Expand Up @@ -122,11 +123,11 @@ $bulk-actions-reserved-space: 80px;

.virtualizedContainer {
position: relative;
height: vars.$virtualized-height;
overflow-x: auto;
overflow-y: hidden;
display: flex;
flex-direction: column;
flex: 1;

@include scrollbars.scrollbar-on-hover;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,7 @@ export const VirtualizedWithControls: Story = {
render: function Render(args) {
const [data] = useState(() => generatePersonData(0, VIRTUALIZED_ROW_COUNT, []).data);

return (
<div className={styles.virtualizedTableWrapper}>
<DsTable {...args} data={data} virtualized />
</div>
);
return <DsTable {...args} data={data} virtualized />;
},
args: {
controls: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@
}

.virtualizedDemoContainer {
display: flex;
flex-direction: column;
gap: 1rem;
position: relative;
height: 100%;
}

.virtualizedDemoHeader {
Expand Down Expand Up @@ -201,6 +205,7 @@

.virtualizedTableWrapper {
position: relative;
flex: 1;
}

.loadingOverlay {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
$border-radius: 4px;
$border-width: 1px;
$group-border-width: 2px;
$virtualized-height: 600px;
$reorder-column-width: 60px;
$container-margin-vertical: 1rem;
$filter-input-gap: 0.5rem;
Expand Down
Loading