diff --git a/_ALL_SITES/riso.app/db/lang/ws_it.js b/_ALL_SITES/riso.app/db/lang/ws_it.js index 9cd59a3d..b4958ae8 100755 --- a/_ALL_SITES/riso.app/db/lang/ws_it.js +++ b/_ALL_SITES/riso.app/db/lang/ws_it.js @@ -127,6 +127,7 @@ const msg_website_it = { keywords: 'Parole Chiave', desctiption: 'Descrizione', heightimg: 'Altezza Immagine', + heightcarousel: 'Altezza Carosello', }, msg: { myAppName: 'Riso', diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index d66b410e..43c91b73 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -1671,7 +1671,7 @@ export const shared_consts = { }, { value: 400, - label: 'Griglia Tabelle', + label: 'Visualizzatore Tabelle', }, ], diff --git a/src/components/CGridOriz/CGridOriz.ts b/src/components/CGridOriz/CGridOriz.ts index 453ad01d..6d4449a6 100755 --- a/src/components/CGridOriz/CGridOriz.ts +++ b/src/components/CGridOriz/CGridOriz.ts @@ -51,6 +51,11 @@ export default defineComponent({ required: false, default: true, }, + heightcarousel: { + type: Number, + required: false, + default: 0, + }, }, components: { CMyFieldDb, CGridTableRec, CTitlePage, diff --git a/src/components/CGridOriz/CGridOriz.vue b/src/components/CGridOriz/CGridOriz.vue index 7f689b0b..e6a8678b 100755 --- a/src/components/CGridOriz/CGridOriz.vue +++ b/src/components/CGridOriz/CGridOriz.vue @@ -33,6 +33,7 @@ labelBtnAddExtra="" :extraparams="tools.extraparams(table, { myrecfiltertoggle })" :prop_showMap="showMap" + :heightcarousel="heightcarousel" @clickButtBar="clickButtBar" > diff --git a/src/components/CGridTableRec/CGridTableRec.scss b/src/components/CGridTableRec/CGridTableRec.scss index e46952d4..6b2e4134 100755 --- a/src/components/CGridTableRec/CGridTableRec.scss +++ b/src/components/CGridTableRec/CGridTableRec.scss @@ -78,6 +78,5 @@ } .carousel-scroll-container { - height: 300px; /* Imposta un'altezza per permettere lo scorrimento */ overflow-y: auto; /* Permette lo scrolling verticale */ } \ No newline at end of file diff --git a/src/components/CGridTableRec/CGridTableRec.ts b/src/components/CGridTableRec/CGridTableRec.ts index 5189e80e..ea0f7581 100755 --- a/src/components/CGridTableRec/CGridTableRec.ts +++ b/src/components/CGridTableRec/CGridTableRec.ts @@ -243,6 +243,10 @@ export default defineComponent({ required: false, default: 0, }, + heightcarousel: { + required: false, + default: 0, + }, prop_pagination: { type: Object as PropType, required: false, @@ -1687,7 +1691,7 @@ export default defineComponent({ } const checkScrollPosition = () => { - console.log('checkScrollPosition') + // console.log('checkScrollPosition') const container = carouselTabRef.value if (!container ) return @@ -2412,7 +2416,7 @@ export default defineComponent({ } function onLoadScroll(index: number, done: any) { - console.log('onLoadScroll', index) + // console.log('onLoadScroll', index) if (index > 1) { // console.log('onLoadScroll', index, 'RECLOAD', numRecLoaded.value, 'ROWS: ', pagination.value.rowsNumber, 'PAGE: ', pagination.value.page) diff --git a/src/components/CGridTableRec/CGridTableRec.vue b/src/components/CGridTableRec/CGridTableRec.vue index 454c2009..2129b72f 100755 --- a/src/components/CGridTableRec/CGridTableRec.vue +++ b/src/components/CGridTableRec/CGridTableRec.vue @@ -379,13 +379,11 @@
- page: {{ pagination.page }} numRecLoaded: {{ numRecLoaded }} rows: - {{ pagination.rowsNumber }} -
@@ -489,13 +536,14 @@
-
Griglia Orizzontale
+
Visualizzatore Tabelle
diff --git a/src/css/app.scss b/src/css/app.scss index c00ac293..da1af84c 100755 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -1135,6 +1135,10 @@ h3 { box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important; margin: 1px; object-position: 50% 5% !important; + object-fit: contain !important; + @media (max-width: 600px) { + /* Versione Mobile */ + } } .imgprofile_small { @@ -2226,6 +2230,62 @@ $coloreprincipale: lightblue; transition: transform 0.3s ease; } +.cards-wrapper { + display: flex; + justify-content: center; + align-items: center; + height: 100%; +} + +.card-item { + display: flex; + flex-direction: column; + max-width: 200px; /* Massima larghezza per la card */ + margin: 0 10px; /* Spazio tra le card */ + text-align: center; +} + +.flex-container { + display: flex; + flex-wrap: nowrap; + flex-direction: row; + gap: 1rem; + height: 100%; + padding: 1rem; +} + +.flex-card { + display: flex; + flex-direction: column; + flex: 0 0 auto; + margin: 0 0.5rem; + position: relative; + transition: all 0.3s ease; +} + +/* Aggiungi questi stili per gestire lo scroll orizzontale se necessario */ +.q-carousel__slide { + overflow-x: auto; + overflow-y: hidden; + scroll-behavior: smooth; + -webkit-overflow-scrolling: touch; +} + +.row.no-wrap { + flex-wrap: nowrap !important; + gap: 1rem; +} + +.card-width-200 { + width: 100%; + max-width: 200px; +} + +.card-width-250 { + width: 100%; + max-width: 250px; +} + .my-card-elem:hover { transform: scale(1.05); } @@ -2237,7 +2297,7 @@ $coloreprincipale: lightblue; .img-container .q-img { height: 100%; - object-fit: cover; + object-fit: contain; } .swipe-indicator { diff --git a/src/model/GlobalStore.ts b/src/model/GlobalStore.ts index bbf69161..96a4c05e 100755 --- a/src/model/GlobalStore.ts +++ b/src/model/GlobalStore.ts @@ -149,6 +149,7 @@ export interface IMyElem { width?: number height?: number heightimg?: string + heightcarousel?: string widthimg?: string link?: string onlyif_logged?: boolean diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts index 4af1dda6..af517a55 100755 --- a/src/store/Modules/fieldsTable.ts +++ b/src/store/Modules/fieldsTable.ts @@ -173,6 +173,7 @@ export const colmyelems = [ AddCol({ name: 'listcards', label_trans: 'myelems.listcards', fieldtype: costanti.FieldType.listimages }), AddCol({ name: 'height', label_trans: 'myelems.height', fieldtype: costanti.FieldType.number }), AddCol({ name: 'heightimg', label_trans: 'myelems.heightimg', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'heightcarousel', label_trans: 'myelems.heightcarousel', fieldtype: costanti.FieldType.string }), AddCol({ name: 'widthimg', label_trans: 'pages.widthimg', fieldtype: costanti.FieldType.string }), AddCol({ name: 'link', label_trans: 'pages.link', fieldtype: costanti.FieldType.string }), AddCol({ name: 'width', label_trans: 'myelems.width', fieldtype: costanti.FieldType.number }),