Fix expiring section: show soonest 10 items instead of 7-day window
- Change query from 7-day threshold to soonest 10 items with expiry - Section now always visible when items have expiry dates - Improved badges: OGGI, Domani, N giorni, Ng, ~N mesi - Color coding: red (today), orange (≤7d), yellow (≤30d), grey (>30d) - Renamed section to 'Prossime Scadenze'
This commit is contained in:
@@ -290,6 +290,16 @@ body {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.alert-item-badge.expiring-soon {
|
||||
background: #ffc107;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.alert-item-badge.expiring-later {
|
||||
background: #e0e0e0;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.alert-item-badge.expired {
|
||||
background: var(--danger);
|
||||
color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user