From 2fb3c34d00a7e23dc7ae21ca46d52b70a25dda8a Mon Sep 17 00:00:00 2001 From: RaidMax Date: Wed, 6 Jul 2022 09:49:44 -0500 Subject: [PATCH] clean up display and uniformity of social icons --- WebfrontCore/Views/Shared/_LeftNavBar.cshtml | 26 ++++---- WebfrontCore/wwwroot/css/src/main.scss | 5 +- .../wwwroot/images/community/discord.svg | 65 ++++++++++++++++++- .../wwwroot/images/community/github.svg | 16 ++++- 4 files changed, 95 insertions(+), 17 deletions(-) diff --git a/WebfrontCore/Views/Shared/_LeftNavBar.cshtml b/WebfrontCore/Views/Shared/_LeftNavBar.cshtml index 55b2dc583..c51f4f0d0 100644 --- a/WebfrontCore/Views/Shared/_LeftNavBar.cshtml +++ b/WebfrontCore/Views/Shared/_LeftNavBar.cshtml @@ -88,18 +88,20 @@ @foreach (var social in ViewBag.CommunityInformation?.SocialAccounts ?? Array.Empty()) { - @if (!string.IsNullOrWhiteSpace(social.IconId)) - { - - } - else if (!string.IsNullOrWhiteSpace(social.IconUrl)) - { - var url = Uri.TryCreate(social.IconUrl, UriKind.Absolute, out Uri parsedUrl) - ? parsedUrl.AbsoluteUri - : $"/images/community/{social.IconUrl}"; - - } - @social.Title +
+ @if (!string.IsNullOrWhiteSpace(social.IconId)) + { + + } + else if (!string.IsNullOrWhiteSpace(social.IconUrl)) + { + var url = Uri.TryCreate(social.IconUrl, UriKind.Absolute, out Uri parsedUrl) + ? parsedUrl.AbsoluteUri + : $"/images/community/{social.IconUrl}"; + + } +
@social.Title
+
}
diff --git a/WebfrontCore/wwwroot/css/src/main.scss b/WebfrontCore/wwwroot/css/src/main.scss index 1bf08edab..dae964252 100644 --- a/WebfrontCore/wwwroot/css/src/main.scss +++ b/WebfrontCore/wwwroot/css/src/main.scss @@ -449,11 +449,10 @@ table.with-auto-width td { } img.social-icon { - max-height: 1.75rem; - margin-right: 0.6rem; - margin-top: 3px; + height: 1.6rem; } .sidebar-link .oi, .sidebar-link img { min-width: 1.2rem; + margin-right: 0.75rem; } diff --git a/WebfrontCore/wwwroot/images/community/discord.svg b/WebfrontCore/wwwroot/images/community/discord.svg index cd4cbc95a..1c335e238 100644 --- a/WebfrontCore/wwwroot/images/community/discord.svg +++ b/WebfrontCore/wwwroot/images/community/discord.svg @@ -1 +1,64 @@ -discord-icon \ No newline at end of file + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/WebfrontCore/wwwroot/images/community/github.svg b/WebfrontCore/wwwroot/images/community/github.svg index caeea8745..deb247f5a 100644 --- a/WebfrontCore/wwwroot/images/community/github.svg +++ b/WebfrontCore/wwwroot/images/community/github.svg @@ -1 +1,15 @@ -GitHub \ No newline at end of file + + + + + + + +