From 8f211ee3e2f7decf9426004ae5feb031a3d34fca Mon Sep 17 00:00:00 2001 From: SabreCat Date: Mon, 25 Sep 2023 17:32:04 -0500 Subject: [PATCH] fix(profile): fix admin actions Correct "user is banned" banner Fix bouncing modal Add "Days" smart plural Fix leaky CSS on Market page Refactor some redundant functions --- .../src/components/shops/market/sellModal.vue | 78 +++++---- .../src/components/userMenu/profile.vue | 160 ++++++------------ .../src/components/userMenu/profileModal.vue | 10 +- website/client/src/router/index.js | 9 +- 4 files changed, 98 insertions(+), 159 deletions(-) diff --git a/website/client/src/components/shops/market/sellModal.vue b/website/client/src/components/shops/market/sellModal.vue index 6bbc95599c..1f839c8fca 100644 --- a/website/client/src/components/shops/market/sellModal.vue +++ b/website/client/src/components/shops/market/sellModal.vue @@ -265,25 +265,24 @@ align-items: center; } } - } - .how-many-to-sell { - font-weight: bold !important; - } - - .number-increment { - margin-top: 16px; - } - - .total-row { - font-weight: bold; - font-size: 0.875rem; - margin-top: 16px; - - &.gold { - color: $yellow-5; + .how-many-to-sell { + font-weight: bold !important; + } + + .number-increment { + margin-top: 16px; + } + + .total-row { + font-weight: bold; + font-size: 0.875rem; + margin-top: 16px; + + &.gold { + color: $yellow-5; + } } - } .total-text { color: $gray-50; @@ -291,32 +290,31 @@ font-size: 0.875rem; line-height: 1.71; - &.gold { - color: $yellow-5; - } - } - - button.btn.btn-primary { - margin-top: 16px; - padding: 4px 16px; - height: 32px; - - &:focus { - border: 2px solid black; + &.gold { + color: $yellow-5; + } } - .balance { - width: 74px; - height: 16px; - font-size: 12px; - font-weight: bold; - line-height: 1.33; - color: $gray-200; + button.btn.btn-primary { + margin-top: 16px; + padding: 4px 16px; + height: 32px; + + &:focus { + border: 2px solid black; + } + + .balance { + width: 74px; + height: 16px; + font-size: 12px; + font-weight: bold; + line-height: 1.33; + color: $gray-200; + } + } } - - -} - +