- Fare LISTA MOVIMENTI più comprensibile

- Grafica Circuiti
This commit is contained in:
Surya Paolo
2024-10-02 03:46:40 +02:00
parent 1424060813
commit e29de7e0f6
47 changed files with 937 additions and 291 deletions

View File

@@ -12,11 +12,6 @@
}
.actualdate{
}
.cardrec {
/* Aggiungi un bordo sottile */

View File

@@ -44,7 +44,7 @@ export default defineComponent({
const userStore = useUserStore()
const calendarStore = useCalendarStore()
const globalStore = useGlobalStore()
// const $q = useQuasar()
const $q = useQuasar()
const { t } = useI18n()
const $router = useRouter()
@@ -109,6 +109,11 @@ export default defineComponent({
return (props.table === shared_consts.TABLES_MYBACHECAS && calendarStore.isPartecipero(myrec.value._id, props.table))
}
function computedWidth() {
const width = tools.getwidth($q) - 20;
return `${Math.min(width, 600)}px`; // Limita la larghezza massima a 600px
}
onMounted(mounted)
return {
@@ -132,6 +137,7 @@ export default defineComponent({
calendarStore,
disabilita,
globalStore,
computedWidth,
}
},
})

View File

@@ -1,15 +1,9 @@
<!--suppress ALL -->
<template>
<div
class="q-py-xs centermydiv cardrec"
:style="
`max-width: ` +
(tools.getwidth($q) - 20) +
`px; ` +
($q.screen.lt.sm
? `min-width: ` + (tools.getwidth($q) - (20 + margin_right)) + `px;`
: ``)
"
:style="{ maxWidth: computedWidth }"
>
<div v-if="myrec && table === shared_consts.TABLES_MYBACHECAS">
<div class="row">