Skip to content

Commit 01ba529

Browse files
committed
Improved data tables
1 parent 866a322 commit 01ba529

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "1.9.74",
4+
"version": "1.9.75",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/components/vue-ui-chestnut.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,8 +970,8 @@ defineExpose({
970970
</svg>
971971
<!-- DATA TABLE -->
972972
<div ref="tableContainer" class="vue-ui-chestnut-table">
973-
<div :style="`width:100%;overflow-x:auto`" v-if="mutableConfig.showTable">
974-
<div style="width: 100%; container-type: inline-size;" :class="{'vue-ui-responsive': isResponsive}">
973+
<div v-if="mutableConfig.showTable">
974+
<div style="width: 100%" :class="{'vue-ui-responsive': isResponsive}">
975975
<table data-cy="chestnut-table" class="vue-ui-data-table">
976976
<caption :style="{backgroundColor: chestnutConfig.table.th.backgroundColor, color: chestnutConfig.table.th.color, outline: chestnutConfig.table.th.outline }" class="vue-ui-data-table__caption">
977977
{{ chestnutConfig.style.chart.layout.title.text }} <span v-if="chestnutConfig.style.chart.layout.title.subtitle.text">{{ chestnutConfig.style.chart.layout.title.subtitle.text }}</span>
@@ -1169,6 +1169,7 @@ table {
11691169
width: 100%;
11701170
padding: 1rem;
11711171
border-collapse:collapse;
1172+
overflow-x: auto;
11721173
}
11731174
11741175
caption,

src/components/vue-ui-heatmap.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ defineExpose({
455455

456456
<!-- DATA TABLE -->
457457
<div ref="tableContainer" class="vue-ui-heatmap-table">
458-
<div :style="`${isPrinting ? '' : 'max-height:400px'};overflow:auto;width:100%;margin-top:${mutableConfig.inside ? '48px' : ''}`" v-if="mutableConfig.showTable" :class="{'vue-ui-responsive' : isResponsive}">
458+
<div :style="`width:100%;overflow-x:auto`" v-if="mutableConfig.showTable" :class="{'vue-ui-responsive' : isResponsive}">
459459
<table class="vue-ui-data-table">
460460
<caption :style="`backgroundColor:${heatmapConfig.table.th.backgroundColor};color:${heatmapConfig.table.th.color};outline:${heatmapConfig.table.th.outline}`">
461461
{{ heatmapConfig.style.title.text }} <span v-if="heatmapConfig.style.title.subtitle.text">{{ heatmapConfig.style.title.subtitle.text }}</span>

0 commit comments

Comments
 (0)