From c5fd7bdf2fa2cff888f7fb9d50d9572a5fc5aaaf Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 27 Aug 2024 10:35:17 +0200 Subject: [PATCH] Calendario Week: - Update contenitore dati con a capo gestito --- EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs | 2 +- EgwCoreLib.Razor/CalWeekColumn.razor | 4 ++-- EgwCoreLib.Razor/CalWeekColumn.razor.css | 4 ++++ EgwCoreLib.Razor/CalWeekColumn.razor.less | 7 ++++++- EgwCoreLib.Razor/CalWeekColumn.razor.min.css | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs b/EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs index 0bb98c8..9740292 100644 --- a/EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs +++ b/EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs @@ -73,7 +73,7 @@ namespace EgwCoreLib.BlazorTest.Pages CalendarEvent newEv = new CalendarEvent() { CssClass = "bg-success opacity-25", - Description = $"Permesso #{e}", + Description = $"Permesso #{e}, testo molto lungo per provare andata a capo con o senza un segnaposto", Type = "PERM", Inizio = oggi.AddDays(i).AddHours(inizio), Fine = oggi.AddDays(i).AddHours(fine), diff --git a/EgwCoreLib.Razor/CalWeekColumn.razor b/EgwCoreLib.Razor/CalWeekColumn.razor index f0ec925..7811403 100644 --- a/EgwCoreLib.Razor/CalWeekColumn.razor +++ b/EgwCoreLib.Razor/CalWeekColumn.razor @@ -40,10 +40,10 @@ else - +
@currData.title
@($"{currData.start:HH:mm}")-@($"{currData.end:HH:mm}")
-
@currData.value
+
@currData.value
diff --git a/EgwCoreLib.Razor/CalWeekColumn.razor.css b/EgwCoreLib.Razor/CalWeekColumn.razor.css index 6f53e00..517a16c 100644 --- a/EgwCoreLib.Razor/CalWeekColumn.razor.css +++ b/EgwCoreLib.Razor/CalWeekColumn.razor.css @@ -71,4 +71,8 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; +} +.event-body-detail { + color: #A8BCFF; + font-size: 1.4rem; } \ No newline at end of file diff --git a/EgwCoreLib.Razor/CalWeekColumn.razor.less b/EgwCoreLib.Razor/CalWeekColumn.razor.less index 6b9cddb..9bca691 100644 --- a/EgwCoreLib.Razor/CalWeekColumn.razor.less +++ b/EgwCoreLib.Razor/CalWeekColumn.razor.less @@ -84,8 +84,13 @@ color: #A8BCFF; font-size: 1.4rem; word-break: break-word; - white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } + + +.event-body-detail { + color: #A8BCFF; + font-size: 1.4rem; +} diff --git a/EgwCoreLib.Razor/CalWeekColumn.razor.min.css b/EgwCoreLib.Razor/CalWeekColumn.razor.min.css index 5e9b67a..4f27f2a 100644 --- a/EgwCoreLib.Razor/CalWeekColumn.razor.min.css +++ b/EgwCoreLib.Razor/CalWeekColumn.razor.min.css @@ -1 +1 @@ -.lblText{font-size:.3rem;fill:white;}.lblBoxTitle{font-size:.25rem;fill:white;}.lblBoxText{font-size:.2rem;fill:white;word-wrap:break-word;}.heavy{font:bold 30px sans-serif;fill:white;}.canv{fill:#34495e;}.blockMal{fill:rgba(3,155,229,.75);stroke:rgba(3,155,229,.9);stroke-width:.5rem;}.blockPerm{fill:rgba(153,102,222,.75);stroke:rgba(153,102,222,.9);stroke-width:.5rem;}.blockFerie{fill:rgba(0,185,0,.75);stroke:rgba(0,255,0,.9);stroke-width:.5rem;}.block104{fill:rgba(222,0,171,.75);stroke:rgba(222,0,171,.9);stroke-width:.5rem;}.blockChius{fill:rgba(165,185,0,.75);stroke:rgba(235,255,71,.9);stroke-width:.5rem;}.blockFest{fill:rgba(242,35,35,.75);stroke:rgba(242,35,35,.9);stroke-width:.5rem;}.event-title{color:#fff;font-size:2rem;}.event-time{color:#69cdff;font-size:1.6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.hour-label{color:#9abcde;font-size:2rem;}.event-body{color:#a8bcff;font-size:1.4rem;word-break:break-word;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} \ No newline at end of file +.lblText{font-size:.3rem;fill:white;}.lblBoxTitle{font-size:.25rem;fill:white;}.lblBoxText{font-size:.2rem;fill:white;word-wrap:break-word;}.heavy{font:bold 30px sans-serif;fill:white;}.canv{fill:#34495e;}.blockMal{fill:rgba(3,155,229,.75);stroke:rgba(3,155,229,.9);stroke-width:.5rem;}.blockPerm{fill:rgba(153,102,222,.75);stroke:rgba(153,102,222,.9);stroke-width:.5rem;}.blockFerie{fill:rgba(0,185,0,.75);stroke:rgba(0,255,0,.9);stroke-width:.5rem;}.block104{fill:rgba(222,0,171,.75);stroke:rgba(222,0,171,.9);stroke-width:.5rem;}.blockChius{fill:rgba(165,185,0,.75);stroke:rgba(235,255,71,.9);stroke-width:.5rem;}.blockFest{fill:rgba(242,35,35,.75);stroke:rgba(242,35,35,.9);stroke-width:.5rem;}.event-title{color:#fff;font-size:2rem;}.event-time{color:#69cdff;font-size:1.6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.hour-label{color:#9abcde;font-size:2rem;}.event-body{color:#a8bcff;font-size:1.4rem;word-break:break-word;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.event-body-detail{color:#a8bcff;font-size:1.4rem;} \ No newline at end of file