From 885a4c73cbcfa97b33ac64b41c4bb8e95d229b37 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 19 Mar 2024 09:20:53 +0100 Subject: [PATCH] [Glitch] Add badge on account card in report moderation interface when account is already suspended Port cf08a438e7ce7981c209b0faa54a32c5bbe40930 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/styles/admin.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/javascript/flavours/glitch/styles/admin.scss b/app/javascript/flavours/glitch/styles/admin.scss index ca4346558c..de8cc64e4f 100644 --- a/app/javascript/flavours/glitch/styles/admin.scss +++ b/app/javascript/flavours/glitch/styles/admin.scss @@ -1401,6 +1401,19 @@ a.sparkline { .account-card { border-radius: 4px; border: 1px solid lighten($ui-base-color, 8%); + position: relative; + + &__warning-badge { + position: absolute; + padding: 4px 10px; + top: 10px; + inset-inline-start: 10px; + border-radius: 4px; + background: + url('~images/warning-stripes.svg') repeat-y left, + url('~images/warning-stripes.svg') repeat-y right, + var(--background-color); + } &__permalink { color: inherit;