Skip to content

Commit 5affaec

Browse files
committed
fix: ridimensionamento viste
1 parent 0f81b15 commit 5affaec

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

modules/viste/css/style.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,20 @@
186186
padding: 10px !important;
187187
}
188188

189-
/* Riduzione altezza textarea */
190-
.card-body textarea.form-control {
189+
/* Riduzione altezza textarea (escluse le query) */
190+
.card-body textarea.form-control:not([name="options"]):not([name="options2"]) {
191191
height: 80px !important;
192192
min-height: 80px;
193193
}
194194

195+
/* Stile specifico per le textarea delle query */
196+
.card-body textarea.form-control[name="options"],
197+
.card-body textarea.form-control[name="options2"] {
198+
min-height: 120px;
199+
height: auto;
200+
resize: vertical;
201+
}
202+
195203
/* Stile per i tooltip */
196204
.tip {
197205
cursor: help;

modules/viste/js/main.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ $(document).ready(function() {
181181
formatQuery();
182182
});
183183

184+
// Forza l'aggiornamento dell'autosize per le textarea delle query
185+
setTimeout(function() {
186+
$('textarea[name="options"], textarea[name="options2"]').each(function() {
187+
if (typeof autosize !== 'undefined') {
188+
autosize.update(this);
189+
}
190+
});
191+
}, 100);
192+
184193
// Aggiungi il pulsante "Seleziona tutti" accanto alle label dei gruppi
185194
addSelectAllButtons();
186195

0 commit comments

Comments
 (0)