diff --git a/public/userarea/matrici.php b/public/userarea/matrici.php index 77d16dc..f8fb4cc 100644 --- a/public/userarea/matrici.php +++ b/public/userarea/matrici.php @@ -138,6 +138,65 @@ .dataTables_wrapper .dataTables_filter input { padding-right: 42px !important; } + + /* --- FIX larghezze tabella matrici --- */ + #tabellaMatrici { + table-layout: fixed; + /* rende fisse le larghezze */ + width: 100% !important; + } + + #tabellaMatrici th, + #tabellaMatrici td { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + /* evita che il testo allarghi */ + vertical-align: middle; + } + + /* Foto: più stretta */ + #tabellaMatrici th:nth-child(1), + #tabellaMatrici td:nth-child(1) { + width: 90px; + max-width: 90px; + } + + /* Nome: più largo */ + #tabellaMatrici th:nth-child(2), + #tabellaMatrici td:nth-child(2) { + width: 320px; + max-width: 320px; + } + + /* Cliente: più largo */ + #tabellaMatrici th:nth-child(3), + #tabellaMatrici td:nth-child(3) { + width: 320px; + max-width: 320px; + } + + /* Data: piccola */ + #tabellaMatrici th:nth-child(4), + #tabellaMatrici td:nth-child(4) { + width: 120px; + max-width: 120px; + } + + /* Azioni: fissa */ + #tabellaMatrici th:nth-child(5), + #tabellaMatrici td:nth-child(5) { + width: 170px; + max-width: 170px; + } + + /* Immagine: non “sfora” mai nella cella */ + #tabellaMatrici td:nth-child(1) img { + width: 70px; + /* puoi scendere a 60 */ + height: 60px; + object-fit: cover; + } @@ -213,19 +272,33 @@ echo "