diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index d707d26a..23861ac4 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2312.2114 + 6.16.2312.2115 enable MP_TAB3 diff --git a/MP-TAB3/Pages/StatusMap.razor b/MP-TAB3/Pages/StatusMap.razor index 32385f0c..ccbee750 100644 --- a/MP-TAB3/Pages/StatusMap.razor +++ b/MP-TAB3/Pages/StatusMap.razor @@ -1,18 +1,33 @@ @page "/status-map" -
+
@if (ListMSE == null || ListMSE.Count == 0 || isCalcSize) { } else { + int maxBlocks = calcMaxBlock(); + int currIdx = 0; @foreach (var item in ListMSE) { -
+ currIdx++; +
+ @if (currIdx >= maxBlocks) + { + currIdx = 0; + @((MarkupString)"
") + } + } + // controllo se devo "chiudere riga... + int currNum = (currIdx % maxBlocks); + while (currNum < (maxBlocks)) + { + @((MarkupString)"
 
") + currNum++; } }
diff --git a/MP-TAB3/Pages/StatusMap.razor.cs b/MP-TAB3/Pages/StatusMap.razor.cs index 369b4992..4b1a7a76 100644 --- a/MP-TAB3/Pages/StatusMap.razor.cs +++ b/MP-TAB3/Pages/StatusMap.razor.cs @@ -52,6 +52,7 @@ namespace MP_TAB3.Pages [Inject] protected MessageService MsgServ { get; set; } = null!; + [Inject] protected NavigationManager NavMan { get; set; } = null!; @@ -80,6 +81,26 @@ namespace MP_TAB3.Pages Height = dimension.Height; Width = dimension.Width; } + /// + /// calcola num blocchi max data dimensione larghezza + /// + /// + protected int calcMaxBlock() + { + int answ = 2; + if (Width > 450) + { + if (Width < 1024) + { + answ = (int)Math.Floor((decimal)Width / 200); + } + else + { + answ = (int)Math.Floor((decimal)Width / 220) - 1; + } + } + return answ; + } protected override async Task OnAfterRenderAsync(bool firstRender) { @@ -132,8 +153,11 @@ namespace MP_TAB3.Pages #region Private Properties + private string baseLang { get; set; } = ""; private List? ListMSE { get; set; } = null; + private string tcMode { get; set; } = ""; + #endregion Private Properties #region Private Methods @@ -147,10 +171,6 @@ namespace MP_TAB3.Pages isCalcSize = true; } - - private string baseLang { get; set; } = ""; - private string tcMode { get; set; } = ""; - private void SetupConf() { // sistemo i parametri opzionali... diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 7e200d4c..920814d2 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2312.2114

+

Versione: 6.16.2312.2115


Note di rilascio:
  • diff --git a/MP-TAB3/Resources/VersNum.txt b/MP-TAB3/Resources/VersNum.txt index 12ec00e8..943bbdd9 100644 --- a/MP-TAB3/Resources/VersNum.txt +++ b/MP-TAB3/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2312.2114 +6.16.2312.2115 diff --git a/MP-TAB3/Resources/manifest.xml b/MP-TAB3/Resources/manifest.xml index f2894e9e..5ca85aa0 100644 --- a/MP-TAB3/Resources/manifest.xml +++ b/MP-TAB3/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2312.2114 + 6.16.2312.2115 https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html false diff --git a/MP-TAB3/Shared/MainLayout.razor b/MP-TAB3/Shared/MainLayout.razor index c0510fcb..45bfa70d 100644 --- a/MP-TAB3/Shared/MainLayout.razor +++ b/MP-TAB3/Shared/MainLayout.razor @@ -9,13 +9,13 @@ @if (userIsOk || NavMan.Uri.Contains("reg-new-device")) { -
    -
    +
    +
    @Body
    @if (!HideMenu) { -