diff --git a/public/userarea/scadenzario/index.php b/public/userarea/scadenzario/index.php index dcf0bf9..781604d 100644 --- a/public/userarea/scadenzario/index.php +++ b/public/userarea/scadenzario/index.php @@ -370,11 +370,13 @@ function getContrastTextColor($hexColor) display: inline-block; padding: 0.15rem 0.55rem; border-radius: 1rem; - font-size: 0.72rem; + font-size: 0.7rem; font-weight: 600; color: #fff; letter-spacing: 0.02em; - white-space: nowrap; + line-height: 1.3; + white-space: normal; + word-break: break-word; } .deadline-card[data-subject-color] { @@ -468,16 +470,68 @@ function getContrastTextColor($hexColor) display: block; } - /* Table text overflow */ + /* Table column widths */ + #deadlinesTable { + table-layout: fixed; + } + + #deadlinesTable th, #deadlinesTable td { - max-width: 250px; overflow: hidden; text-overflow: ellipsis; } - #deadlinesTable td:first-child { - max-width: 110px; - width: 110px; + /* 1 Argomento */ + #deadlinesTable th:nth-child(1), + #deadlinesTable td:nth-child(1) { + width: 15%; + } + + /* 2 Dettaglio — la colonna larga */ + #deadlinesTable th:nth-child(2), + #deadlinesTable td:nth-child(2) { + width: 34%; + white-space: normal; + } + + /* 3 Scadenza */ + #deadlinesTable th:nth-child(3), + #deadlinesTable td:nth-child(3) { + width: 8%; + } + + /* 4 Verifica */ + #deadlinesTable th:nth-child(4), + #deadlinesTable td:nth-child(4) { + width: 8%; + } + + /* 5 Funzione */ + #deadlinesTable th:nth-child(5), + #deadlinesTable td:nth-child(5) { + width: 10%; + font-size: 0.8rem; + } + + /* 6 Esecutore — compatto */ + #deadlinesTable th:nth-child(6), + #deadlinesTable td:nth-child(6) { + width: 12%; + font-size: 0.78rem; + line-height: 1.25; + white-space: normal; + } + + /* 7 Stato */ + #deadlinesTable th:nth-child(7), + #deadlinesTable td:nth-child(7) { + width: 8%; + } + + /* 8 Azioni */ + #deadlinesTable th:nth-child(8), + #deadlinesTable td:nth-child(8) { + width: 105px; } /* Attachment list in modal */ @@ -1000,14 +1054,14 @@ function getContrastTextColor($hexColor) - + - + @@ -1081,10 +1135,9 @@ function getContrastTextColor($hexColor) -
ArgomentoArgomento Dettaglio Scadenza Verifica Funzione Esecutore StatoAzioniAzioni
- -
- +
+
+