@@ -70,9 +70,9 @@
}
else
{
-
-
@CurrRecord.DescrizioneStato
-
@getMinSec(getDecimal(@CurrRecord.Durata))
+
+
@CurrRecord.DescrizioneStato
+
@getMinSec(getDecimal(@CurrRecord.Durata))
}
@if (hasRow(4))
@@ -104,7 +104,7 @@
else
{
-
Pezzi(prod/ord)
+
Pezzip/o
@CurrRecord.PezziProd / @CurrRecord.NumPezzi
}
diff --git a/MP.Mon/Components/DetailMSE.razor.cs b/MP.Mon/Components/DetailMSE.razor.cs
index d0a99243..85b79107 100644
--- a/MP.Mon/Components/DetailMSE.razor.cs
+++ b/MP.Mon/Components/DetailMSE.razor.cs
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Components;
+using Microsoft.Extensions.FileSystemGlobbing;
using MP.Data.Conf;
using MP.Data.DatabaseModels;
using NLog;
@@ -75,21 +76,6 @@ namespace MP.Mon.Components
pUpd.Wait();
}
- /////
- ///// CSS class x testo (se descr lunga scorre...)
- /////
- //protected string textDescrCss
- //{
- // get
- // {
- // string answ = "text-nowrap";
- // if (CurrRecord != null && CurrRecord.DescrizioneStato.Length > 7)
- // {
- // answ = " scroll-left";
- // }
- // return answ;
- // }
- //}
public void StartTimer()
{
int tOutPeriod = 1000;
@@ -108,8 +94,6 @@ namespace MP.Mon.Components
protected int kaFactor = 60 / 2;
- protected string textDescrCss = "";
-
#endregion Protected Fields
#region Protected Properties
@@ -127,6 +111,20 @@ namespace MP.Mon.Components
}
}
+
+ ///
+ /// CSS class x testo (se descr lunga scorre...)
+ ///
+ protected string textDescrCss(string currText)
+ {
+ string answ = "text-nowrap";
+ if (currText.Length > maxChar4Scroll)
+ {
+ answ = " scroll-left";
+ }
+ return answ;
+ }
+
protected bool dataLoaded { get; set; } = false;
///
@@ -192,11 +190,13 @@ namespace MP.Mon.Components
Random rnd = new Random();
await Task.Delay(rnd.Next(5));
cssOverlayOff = config.GetValue("ServerConf:cssOverlayOff");
+ maxChar4Scroll = config.GetValue("ServerConf:maxChar4Scroll");
setupConf();
dataLoaded = true;
}
private string cssOverlayOff = "bg-dark text-light opacity-100";
+ private int maxChar4Scroll = 20;
///
/// Restituisce (se presenti) valori di override per la riga indicata
diff --git a/MP.Mon/Components/DetailMSE.razor.css b/MP.Mon/Components/DetailMSE.razor.css
new file mode 100644
index 00000000..04f76376
--- /dev/null
+++ b/MP.Mon/Components/DetailMSE.razor.css
@@ -0,0 +1,42 @@
+/* gestione scroll testo */
+.scroll-left {
+ height: 1.5em;
+ overflow: hidden;
+ position: relative;
+ width: 100%;
+ white-space: nowrap;
+}
+.scroll-left span {
+ /*display: inline-block;*/
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ line-height: 1.5em;
+ /* Starting position */
+ -moz-transform: translateX(-50%);
+ -webkit-transform: translateX(-50%);
+ transform: translateX(-50%);
+ /* Apply animation to this element */
+ -moz-animation: scroll-left 20s ease infinite;
+ -webkit-animation: scroll-left 20s ease infinite;
+ animation: scroll-left 20s ease infinite;
+}
+/* Move it (define the animation) */
+@keyframes scroll-left {
+ 0% {
+ transform: translateX(-50%);
+ }
+ 25% {
+ transform: translateX(-30%);
+ }
+ 50% {
+ transform: translateX(-50%);
+ }
+ 75% {
+ transform: translateX(-70%);
+ }
+ 100% {
+ transform: translateX(-50%);
+ }
+}
\ No newline at end of file
diff --git a/MP.Mon/Components/DetailMSE.razor.less b/MP.Mon/Components/DetailMSE.razor.less
index a631b140..9ef253fc 100644
--- a/MP.Mon/Components/DetailMSE.razor.less
+++ b/MP.Mon/Components/DetailMSE.razor.less
@@ -4,9 +4,8 @@
height: 1.5em;
overflow: hidden;
position: relative;
- width: 70%;
+ width: 100%;
white-space: nowrap;
- /*display: inline-block;*/
}
.scroll-left span {
@@ -17,25 +16,33 @@
margin: 0;
line-height: 1.5em;
/* Starting position */
- -moz-transform: translateX(0%);
- -webkit-transform: translateX(0%);
- transform: translateX(0%);
+ -moz-transform: translateX(-50%);
+ -webkit-transform: translateX(-50%);
+ transform: translateX(-50%);
/* Apply animation to this element */
- -moz-animation: scroll-left 8s ease infinite;
- -webkit-animation: scroll-left 8s ease infinite;
- animation: scroll-left 8s ease infinite;
+ -moz-animation: scroll-left 20s ease infinite;
+ -webkit-animation: scroll-left 20s ease infinite;
+ animation: scroll-left 20s ease infinite;
}
/* Move it (define the animation) */
@keyframes scroll-left {
0% {
- transform: translateX(0%);
+ transform: translateX(-50%);
}
- 30% {
- transform: translateX(0%);
+ 25% {
+ transform: translateX(-30%);
}
- 80% {
+ 50% {
+ transform: translateX(-50%);
+ }
+
+ 75% {
+ transform: translateX(-70%);
+ }
+
+ 100% {
transform: translateX(-50%);
}
}
diff --git a/MP.Mon/Components/DetailMSE.razor.min.css b/MP.Mon/Components/DetailMSE.razor.min.css
new file mode 100644
index 00000000..c469600b
--- /dev/null
+++ b/MP.Mon/Components/DetailMSE.razor.min.css
@@ -0,0 +1 @@
+.scroll-left{height:1.5em;overflow:hidden;position:relative;width:100%;white-space:nowrap;}.scroll-left span{position:absolute;width:100%;height:100%;margin:0;line-height:1.5em;-moz-transform:translateX(-50%);-webkit-transform:translateX(-50%);transform:translateX(-50%);-moz-animation:scroll-left 20s ease infinite;-webkit-animation:scroll-left 20s ease infinite;animation:scroll-left 20s ease infinite;}@keyframes scroll-left{0%{transform:translateX(-50%);}25%{transform:translateX(-30%);}50%{transform:translateX(-50%);}75%{transform:translateX(-70%);}100%{transform:translateX(-50%);}}
\ No newline at end of file
diff --git a/MP.Mon/MP.Mon.csproj b/MP.Mon/MP.Mon.csproj
index 1218efa6..bee37567 100644
--- a/MP.Mon/MP.Mon.csproj
+++ b/MP.Mon/MP.Mon.csproj
@@ -4,7 +4,7 @@
net6.0
enable
enable
- 6.16.2403.417
+ 6.16.2405.1719
diff --git a/MP.Mon/Resources/ChangeLog.html b/MP.Mon/Resources/ChangeLog.html
index be6fc273..cdebf4c7 100644
--- a/MP.Mon/Resources/ChangeLog.html
+++ b/MP.Mon/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MON MAPO
- Versione: 6.16.2403.417
+ Versione: 6.16.2405.1719
Note di rilascio:
-
diff --git a/MP.Mon/Resources/VersNum.txt b/MP.Mon/Resources/VersNum.txt
index 598c2025..0678146b 100644
--- a/MP.Mon/Resources/VersNum.txt
+++ b/MP.Mon/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2403.417
+6.16.2405.1719
diff --git a/MP.Mon/Resources/manifest.xml b/MP.Mon/Resources/manifest.xml
index 3800737a..e6c55cc4 100644
--- a/MP.Mon/Resources/manifest.xml
+++ b/MP.Mon/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2403.417
+ 6.16.2405.1719
https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/MP.Mon.zip
https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/ChangeLog.html
false
diff --git a/MP.Mon/appsettings.Production.json b/MP.Mon/appsettings.Production.json
index 83f72695..1e7ffaa9 100644
--- a/MP.Mon/appsettings.Production.json
+++ b/MP.Mon/appsettings.Production.json
@@ -16,6 +16,7 @@
},
"ServerConf": {
"maxAge": "2000",
- "cssOverlayOff": "bg-dark text-light bg-opacity-50"
+ "cssOverlayOff": "bg-dark text-light bg-opacity-50",
+ "maxChar4Scroll": 20
}
}
diff --git a/MP.Mon/appsettings.json b/MP.Mon/appsettings.json
index 2c39e694..52783bef 100644
--- a/MP.Mon/appsettings.json
+++ b/MP.Mon/appsettings.json
@@ -14,6 +14,7 @@
},
"ServerConf": {
"maxAge": "2000",
- "cssOverlayOff": "bg-dark text-light bg-opacity-50"
+ "cssOverlayOff": "bg-dark text-light bg-opacity-50",
+ "maxChar4Scroll": 20
}
}
diff --git a/MP.Mon/compilerconfig.json b/MP.Mon/compilerconfig.json
index caa3f6ec..16f25062 100644
--- a/MP.Mon/compilerconfig.json
+++ b/MP.Mon/compilerconfig.json
@@ -6,5 +6,9 @@
{
"outputFile": "wwwroot/css/fonts.css",
"inputFile": "wwwroot/css/fonts.less"
+ },
+ {
+ "outputFile": "Components/DetailMSE.razor.css",
+ "inputFile": "Components/DetailMSE.razor.less"
}
]
\ No newline at end of file