fixed table scadenze
This commit is contained in:
@@ -370,11 +370,13 @@ function getContrastTextColor($hexColor)
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.15rem 0.55rem;
|
padding: 0.15rem 0.55rem;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
font-size: 0.72rem;
|
font-size: 0.7rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
letter-spacing: 0.02em;
|
letter-spacing: 0.02em;
|
||||||
white-space: nowrap;
|
line-height: 1.3;
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.deadline-card[data-subject-color] {
|
.deadline-card[data-subject-color] {
|
||||||
@@ -468,16 +470,68 @@ function getContrastTextColor($hexColor)
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Table text overflow */
|
/* Table column widths */
|
||||||
|
#deadlinesTable {
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
#deadlinesTable th,
|
||||||
#deadlinesTable td {
|
#deadlinesTable td {
|
||||||
max-width: 250px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
#deadlinesTable td:first-child {
|
/* 1 Argomento */
|
||||||
max-width: 110px;
|
#deadlinesTable th:nth-child(1),
|
||||||
width: 110px;
|
#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 */
|
/* Attachment list in modal */
|
||||||
@@ -1000,14 +1054,14 @@ function getContrastTextColor($hexColor)
|
|||||||
<table id="deadlinesTable" class="table table-hover align-middle mb-0" style="width:100%">
|
<table id="deadlinesTable" class="table table-hover align-middle mb-0" style="width:100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width:110px">Argomento</th>
|
<th>Argomento</th>
|
||||||
<th>Dettaglio</th>
|
<th>Dettaglio</th>
|
||||||
<th>Scadenza</th>
|
<th>Scadenza</th>
|
||||||
<th class="d-none d-lg-table-cell">Verifica</th>
|
<th class="d-none d-lg-table-cell">Verifica</th>
|
||||||
<th>Funzione</th>
|
<th>Funzione</th>
|
||||||
<th>Esecutore</th>
|
<th>Esecutore</th>
|
||||||
<th>Stato</th>
|
<th>Stato</th>
|
||||||
<th class="text-center" style="width:120px">Azioni</th>
|
<th class="text-center">Azioni</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -1081,10 +1135,9 @@ function getContrastTextColor($hexColor)
|
|||||||
<span class="text-muted">—</span>
|
<span class="text-muted">—</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td title="<?= htmlspecialchars(trim(($row['reparti'] ?? '') . ' ' . ($row['responsabili'] ?? '')), ENT_QUOTES, 'UTF-8') ?>">
|
||||||
<?php if ($row['reparti']): ?><span class="text-muted"><i class="fa-regular fa-building me-1"></i><?= htmlspecialchars($row['reparti'], ENT_QUOTES, 'UTF-8') ?></span><?php endif; ?>
|
<?php if ($row['reparti']): ?><div class="text-muted text-truncate"><i class="fa-regular fa-building me-1"></i><?= htmlspecialchars($row['reparti'], ENT_QUOTES, 'UTF-8') ?></div><?php endif; ?>
|
||||||
<?php if ($row['reparti'] && $row['responsabili']): ?><br><?php endif; ?>
|
<?php if ($row['responsabili']): ?><div class="text-truncate"><i class="fa-regular fa-user me-1"></i><?= htmlspecialchars($row['responsabili'], ENT_QUOTES, 'UTF-8') ?></div><?php endif; ?>
|
||||||
<?php if ($row['responsabili']): ?><span><i class="fa-regular fa-user me-1"></i><?= htmlspecialchars($row['responsabili'], ENT_QUOTES, 'UTF-8') ?></span><?php endif; ?>
|
|
||||||
<?php if (!$row['reparti'] && !$row['responsabili']): ?>—<?php endif; ?>
|
<?php if (!$row['reparti'] && !$row['responsabili']): ?>—<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td><span class="badge-status <?= $row['_statusClass'] ?>"><?= $row['_statusLabel'] ?></span></td>
|
<td><span class="badge-status <?= $row['_statusClass'] ?>"><?= $row['_statusLabel'] ?></span></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user