From f8e0aeee6ec42a86d49a80e22fb6e3adf28812ca Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sat, 6 Apr 2024 23:05:15 +0800 Subject: [PATCH] responsive fixes for popups --- MyApp/Components/Shared/Header.razor | 8 ++--- MyApp/wwwroot/css/app.css | 46 ++++++++++++++++++++++++++++ MyApp/wwwroot/mjs/header.mjs | 14 ++++----- 3 files changed, 57 insertions(+), 11 deletions(-) diff --git a/MyApp/Components/Shared/Header.razor b/MyApp/Components/Shared/Header.razor index df72e3e..9182442 100644 --- a/MyApp/Components/Shared/Header.razor +++ b/MyApp/Components/Shared/Header.razor @@ -59,19 +59,19 @@ -
  • +
  • -
    +
  • -
  • +
  • -
    +
  • diff --git a/MyApp/wwwroot/css/app.css b/MyApp/wwwroot/css/app.css index e92aeca..c789155 100644 --- a/MyApp/wwwroot/css/app.css +++ b/MyApp/wwwroot/css/app.css @@ -1285,6 +1285,10 @@ select{ display: contents; } +.list-item { + display: list-item; +} + .hidden { display: none; } @@ -1509,6 +1513,26 @@ select{ width: 100vw; } +.w-\[20rem\] { + width: 20rem; +} + +.w-\[25rem\] { + width: 25rem; +} + +.w-\[28rem\] { + width: 28rem; +} + +.w-\[27rem\] { + width: 27rem; +} + +.w-\[26rem\] { + width: 26rem; +} + .min-w-0 { min-width: 0px; } @@ -2126,6 +2150,11 @@ select{ border-color: rgb(244 244 245 / var(--tw-border-opacity)); } +.border-gray-400 { + --tw-border-opacity: 1; + border-color: rgb(156 163 175 / var(--tw-border-opacity)); +} + .bg-accent-1 { --tw-bg-opacity: 1; background-color: rgb(250 250 250 / var(--tw-bg-opacity)); @@ -3929,6 +3958,11 @@ select{ border-color: rgb(63 63 70 / 0.4); } +.dark\:border-gray-500:is(.dark *) { + --tw-border-opacity: 1; + border-color: rgb(107 114 128 / var(--tw-border-opacity)); +} + .dark\:bg-black:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(0 0 0 / var(--tw-bg-opacity)); @@ -4509,6 +4543,14 @@ select{ position: static; } + .sm\:relative { + position: relative; + } + + .sm\:top-0 { + top: 0px; + } + .sm\:col-span-3 { grid-column: span 3 / span 3; } @@ -4626,6 +4668,10 @@ select{ width: 100%; } + .sm\:w-\[30rem\] { + width: 30rem; + } + .sm\:max-w-3xl { max-width: 48rem; } diff --git a/MyApp/wwwroot/mjs/header.mjs b/MyApp/wwwroot/mjs/header.mjs index 9b020b6..c970d57 100644 --- a/MyApp/wwwroot/mjs/header.mjs +++ b/MyApp/wwwroot/mjs/header.mjs @@ -19,7 +19,7 @@ function formatDate(date) { const NotificationsMenu = { template: ` -
    +
    inbox @@ -123,7 +123,7 @@ const NotificationsMenu = { const AchievementsMenu = { template: ` -
    +
    achievements @@ -132,13 +132,13 @@ const AchievementsMenu = {
    • -
      +
      {{entry.title}}
      -
      - + {{item.score}} - - {{item.score}} - {{item.title}} +
      + +{{item.score}} + -{{item.score}} + {{item.title}}