Sistemazioni grafiche

This commit is contained in:
2025-09-12 09:32:34 +02:00
parent 85f19acda6
commit b798b01da0
6 changed files with 19 additions and 9 deletions

View File

@@ -44,21 +44,25 @@
{
if (Steps is null) return;
// Ultimo step non skip
var lastBeforeSkip = Steps
.TakeWhile(s => s.Status is { Skip: false })
.LastOrDefault();
.LastOrDefault(s => s.Status is { Skip: false });
if (lastBeforeSkip is not null) Stato = lastBeforeSkip.StepName;
if (lastBeforeSkip is not null)
Stato = lastBeforeSkip.StepName;
// Ultima data disponibile
LastUpd = Steps
.Where(s => s.Date.HasValue)
.Select(s => s.Date!.Value)
.DefaultIfEmpty()
.Max();
if (LastUpd.Equals(DateTime.MinValue)) LastUpd = null;
if (LastUpd.Equals(DateTime.MinValue))
LastUpd = null;
}
private void OpenPageCommessa()
{
JobSteps.Steps = Steps;

View File

@@ -80,12 +80,15 @@
.title {
font-weight: 700;
margin-bottom: unset !important;
line-height: normal;
}
.section-time {
display: flex;
gap: .65rem;
min-width: max-content;
justify-content: flex-end;
align-items: center;
gap: .5rem;
}
.notification-time {
@@ -99,7 +102,7 @@
overflow: hidden;
}
.subtitle {
.notification-body ::deep > .subtitle {
font-size: 12px;
color: var(--mud-palette-drawer-text);
}