style: handle height based on number of toolbars
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2025-03-31 12:23:45 +02:00
parent 96bcc04d78
commit 8c9a863d71
1 changed files with 10 additions and 1 deletions

View File

@ -117,7 +117,15 @@ const $props = defineProps({
},
tableHeight: {
type: String,
default: '90vh',
default: () => {
let height = 100;
Array.from(document.querySelectorAll('[role="toolbar"]'))
.filter((element) => window.getComputedStyle(element).display !== 'none')
.forEach(() => {
height -= 10;
});
return height + 'vh';
},
},
footer: {
type: Boolean,
@ -627,6 +635,7 @@ const rowCtrlClickFunction = computed(() => {
});
</script>
<template>
{{ $props.tableHeight }}
<RightMenu v-if="$props.rightSearch" :overlay="overlay">
<template #right-panel>
<VnTableFilter