UI optimization
This commit is contained in:
parent
1493c459bd
commit
034b1e3edd
2 changed files with 35 additions and 15 deletions
|
|
@ -82,6 +82,8 @@ else
|
|||
}
|
||||
</div>
|
||||
@if (SelectedSchedule.ContainsKey(day))
|
||||
{
|
||||
if (GetShiftTimes(day).Length > 0)
|
||||
{
|
||||
<div class="shift-times">
|
||||
@GetShiftTimes(day)
|
||||
|
|
@ -90,6 +92,13 @@ else
|
|||
@GetTransportSummary(day)
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="shift-times">
|
||||
@SelectedSchedule[day]
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
|
@ -131,6 +140,8 @@ else
|
|||
}
|
||||
</div>
|
||||
@if (SelectedSchedule.ContainsKey(day))
|
||||
{
|
||||
if (GetShiftTimes(day).Length > 0)
|
||||
{
|
||||
<div class="shift-times">
|
||||
@GetShiftTimes(day)
|
||||
|
|
@ -139,6 +150,13 @@ else
|
|||
@GetTransportSummary(day)
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="shift-times">
|
||||
@SelectedSchedule[day]
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -272,13 +272,15 @@ namespace ShiftScheduler.Client.Pages
|
|||
|
||||
var morningTransport = shiftWithTransport.GetMorningTransportSummary();
|
||||
if (!string.IsNullOrEmpty(morningTransport))
|
||||
summaries.Add($"🚂 {morningTransport}");
|
||||
summaries.Add(morningTransport);
|
||||
|
||||
var afternoonTransport = shiftWithTransport.GetAfternoonTransportSummary();
|
||||
if (!string.IsNullOrEmpty(afternoonTransport))
|
||||
summaries.Add($"🚂 {afternoonTransport}");
|
||||
summaries.Add(afternoonTransport);
|
||||
|
||||
return string.Join(" | ", summaries);
|
||||
if (summaries.Count == 0) { return string.Empty; }
|
||||
|
||||
return "🚂 " + string.Join(" | ", summaries);
|
||||
}
|
||||
|
||||
// Helper method to get shift times for display
|
||||
|
|
|
|||
Loading…
Reference in a new issue