fix: refs #6553 fix vnTable css

This commit is contained in:
Carlos Satorres 2025-01-09 12:37:02 +01:00
parent 66db2f0bd7
commit 3e16357878
2 changed files with 25 additions and 41 deletions

View File

@ -315,7 +315,11 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
show-if-above show-if-above
> >
<QScrollArea class="fit"> <QScrollArea class="fit">
<VnTableFilter :data-key="$attrs['data-key']" :columns="columns" :redirect="redirect" /> <VnTableFilter
:data-key="$attrs['data-key']"
:columns="columns"
:redirect="redirect"
/>
</QScrollArea> </QScrollArea>
</QDrawer> </QDrawer>
<CrudModel <CrudModel
@ -721,6 +725,7 @@ es:
div.fields { div.fields {
width: 100%; width: 100%;
.vn-label-value { .vn-label-value {
background-color: red;
display: flex; display: flex;
gap: 2%; gap: 2%;
} }
@ -761,6 +766,19 @@ es:
table tbody th { table tbody th {
position: relative; position: relative;
} }
.vn-label-value {
display: flex;
flex-direction: row;
color: var(--vn-text-color);
.value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: all;
cursor: text;
user-select: all;
}
}
} }
.last-row-sticky { .last-row-sticky {
@ -772,20 +790,6 @@ es:
} }
} }
.vn-label-value {
display: flex;
flex-direction: row;
color: var(--vn-text-color);
.value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: all;
cursor: text;
user-select: all;
}
}
.cardEllipsis { .cardEllipsis {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -794,12 +798,14 @@ es:
.grid-two { .grid-two {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); grid-template-columns: repeat(auto-fill, minmax(200px, max-content));
max-width: 100%; max-width: 100%;
width: 600px;
margin: 1em auto; margin: 1em auto;
overflow: scroll;
white-space: wrap; white-space: wrap;
width: 100%; .vn-label-value {
flex-direction: column;
}
} }
.w-80 { .w-80 {

View File

@ -207,7 +207,6 @@ const columns = computed(() => [
<template> <template>
<VnTable <VnTable
ref="tableRef" ref="tableRef"
class="BusinessCard"
data-key="WorkerBusiness" data-key="WorkerBusiness"
:url="`Workers/${entityId}/Business`" :url="`Workers/${entityId}/Business`"
save-url="/Businesses/crud" save-url="/Businesses/crud"
@ -223,33 +222,12 @@ const columns = computed(() => [
auto-load auto-load
:disable-option="{ table: true }" :disable-option="{ table: true }"
:right-search="false" :right-search="false"
card-class="BusinessCard grid-two q-gutter-x-xl q-gutter-y-md q-pr-lg q-py-lg" card-class="grid-two q-gutter-x-xl q-gutter-y-md q-pr-lg q-py-lg"
:is-editable="true" :is-editable="true"
:use-model="true" :use-model="true"
@save-changes="(data) => reactivateWorker(data)" @save-changes="(data) => reactivateWorker(data)"
/> />
</template> </template>
<style lang="scss" scoped>
.BusinessCard {
background-color: blue;
}
.q-table__container .vn-label-value .label {
color: red;
}
.q-table__container {
background-color: red;
}
.VnTable {
background-color: red;
.q-table__container {
.vn-label-value {
.label {
background-color: blue;
}
}
}
}
</style>
<i18n> <i18n>
es: es:
Do you want to reactivate the user?: desea reactivar el usuario? Do you want to reactivate the user?: desea reactivar el usuario?