diff --git a/Marechai/Marechai.csproj b/Marechai/Marechai.csproj index 0a1e1688..54788dcf 100644 --- a/Marechai/Marechai.csproj +++ b/Marechai/Marechai.csproj @@ -2,7 +2,7 @@ netcoreapp3.1 - 4.0.0.1756 + 4.0.0.1758 Canary Islands Computer Museum Copyright © 2003-2020 Natalia Portillo Canary Islands Computer Museum Website diff --git a/Marechai/Pages/Admin/Details/Company.razor b/Marechai/Pages/Admin/Details/Company.razor index 7864b77b..55686e86 100644 --- a/Marechai/Pages/Admin/Details/Company.razor +++ b/Marechai/Pages/Admin/Details/Company.razor @@ -354,7 +354,7 @@ + src="/assets/logos/png/1x/@(logo.Guid).png" alt="" height="auto" width="auto" style="max-height: 256px; max-width: 256px" /> } else @@ -423,7 +423,7 @@ - + diff --git a/Marechai/Pages/Companies/Index.razor b/Marechai/Pages/Companies/Index.razor index cd3b5d7d..853edfae 100644 --- a/Marechai/Pages/Companies/Index.razor +++ b/Marechai/Pages/Companies/Index.razor @@ -43,16 +43,16 @@ {

@string.Format(L["Companies founded in {0}."], L[_countryName]) - @if (File.Exists(Path.Combine(Host.WebRootPath, "assets/flags/countries", CountryId + ".svg"))) + @if (File.Exists(Path.Combine(Host.WebRootPath, "assets/flags/countries", $"{CountryId:D3}.svg"))) { - - - + + + }

@@ -85,7 +85,7 @@ /assets/logos/thumbs/webp/3x/@(company.LastLogo).webp 3x"> + /assets/logos/thumbs/png/3x/@(company.LastLogo).png 3x" src="/assets/logos/thumbs/png/1x/@(company.LastLogo).png" alt="" height="auto" width="auto" style="max-height: 32px; max-width: 128px" /> } diff --git a/Marechai/Pages/Companies/View.razor b/Marechai/Pages/Companies/View.razor index ffacc829..62fd260c 100644 --- a/Marechai/Pages/Companies/View.razor +++ b/Marechai/Pages/Companies/View.razor @@ -60,7 +60,7 @@ /assets/logos/webp/3x/@(_company.LastLogo).webp 3x"> + /assets/logos/png/3x/@(_company.LastLogo).png 3x" src="/assets/logos/png/1x/@(_company.LastLogo).png" alt="" height="auto" width="auto" style="max-height: 256px; max-width: 256px" /> }

@@ -85,7 +85,7 @@ /assets/logos/webp/1x/@(logo.Guid).webp 3x"> + /assets/logos/png/1x/@(logo.Guid).webp 3x" src="/assets/logos/png/1x/@(logo.Guid).png" alt="" height="auto" width="auto" style="max-height: 256px; max-width: 256px" /> @@ -136,16 +136,16 @@ @if (_company.Country != null) { - @if (File.Exists(Path.Combine(Host.WebRootPath, "assets/flags/countries", _company.CountryId + ".svg"))) + @if (File.Exists(Path.Combine(Host.WebRootPath, "assets/flags/countries", $"{_company.CountryId:D3}.svg"))) { - - - + + + } @L[_company.Country]