1
0
Fork 0
mirror of synced 2024-07-01 04:21:06 +12:00

Ensure table height is exactly perfect for row count regardless of scrollbars

This commit is contained in:
Andrew Kingston 2022-02-18 13:33:34 +00:00
parent e1dc778b4e
commit 61f689244e

View file

@ -31,6 +31,8 @@
export let autoSortColumns = true
export let compact = false
rowCount = 5
const dispatch = createEventDispatcher()
// Config
@ -356,10 +358,10 @@
<style>
/* Wrapper */
.wrapper {
background-color: var(--spectrum-alias-background-color-secondary);
overflow: hidden;
position: relative;
z-index: 0;
overflow: auto;
background-color: var(--table-bg);
--table-bg: var(--spectrum-global-color-gray-50);
--table-border: 1px solid var(--spectrum-alias-border-color-mid);
--cell-padding: 20px;
@ -376,9 +378,7 @@
/* Table */
.spectrum-Table {
width: 100%;
overflow: auto;
border-radius: 0;
background-color: var(--table-bg);
display: grid;
}