vue3-easy-data-table icon indicating copy to clipboard operation
vue3-easy-data-table copied to clipboard

Change default height of table

Open jarosjan opened this issue 2 years ago • 5 comments

Hi I am trying to change default table height from this image to this image It can be only seen when there are only couple of rows inside a table.

I have managed that this property set min height of table to 180px image Can somebody help me out and help me override that? That property is somehow dynamically generated and it is never the same.

I have tried this but with no luck.

<EasyDataTable
        :headers="headers"
	:items="items"
	empty-message="No data"
	hide-footer
	@click-row="rowClick"
	table-class-name="tableClass"
>
</EasyDataTable>

<style>
.table-class {
       min-height: 50px;
}

Thank you in advance

jarosjan avatar Jul 31 '23 15:07 jarosjan

any news ?

KobyDamari avatar Oct 04 '23 11:10 KobyDamari

I have done this by adding this to my global/main css file:

.vue3-easy-data-table div.vue3-easy-data-table__main {
    min-height: auto;
}

JshGrn avatar Oct 09 '23 16:10 JshGrn

I have made custom class and changed it right in it like that:

.tableClass {
    --da0d4328: 50px !important;
}

jarosjan avatar Oct 09 '23 17:10 jarosjan

@jarosjan @KobyDamari
Unfortunately this not work. And not work also setting the properties table-height and/or table-min-height. Have you find the trick ?

clabnet avatar Dec 15 '23 17:12 clabnet

fyi for future readers: Setting :table-min-height="0" or whatever you need as prop passed to the table instance does the trick

warflash avatar Apr 27 '24 15:04 warflash