From ca63c09a0d6a0a1528a86000d003beb24cf3ecd9 Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Wed, 19 Feb 2025 22:00:52 -0800 Subject: [PATCH] Enhance moderation checklist (#3273) --- apps/frontend/src/assets/styles/layout.scss | 52 ++ .../src/components/ui/Collapsible.vue | 39 + .../src/components/ui/ModerationChecklist.vue | 694 +++++++++--------- apps/frontend/src/composables/featureFlags.ts | 1 + apps/frontend/src/pages/[type]/[id].vue | 22 +- 5 files changed, 475 insertions(+), 333 deletions(-) create mode 100644 apps/frontend/src/components/ui/Collapsible.vue diff --git a/apps/frontend/src/assets/styles/layout.scss b/apps/frontend/src/assets/styles/layout.scss index d9924ac1f..151066667 100644 --- a/apps/frontend/src/assets/styles/layout.scss +++ b/apps/frontend/src/assets/styles/layout.scss @@ -133,6 +133,19 @@ "sidebar" / 100%; + .normal-page__ultimate-sidebar { + grid-area: ultimate-sidebar; + position: fixed; + bottom: 1rem; + right: 1rem; + z-index: 100; + max-width: calc(100% - 2rem); + + > div { + box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); + } + } + @media screen and (min-width: 1024px) { &.sidebar { grid-template: @@ -156,6 +169,45 @@ } } + @media screen and (min-width: 1400px) { + &.ultimate-sidebar { + max-width: calc(80rem + 0.75rem + 600px); + + grid-template: + "header header ultimate-sidebar" auto + "content sidebar ultimate-sidebar" auto + "content dummy ultimate-sidebar" 1fr + / 1fr 18.75rem auto; + + .normal-page__header { + max-width: 80rem; + } + + .normal-page__ultimate-sidebar { + position: sticky; + top: 4.5rem; + bottom: unset; + right: unset; + z-index: unset; + align-self: start; + display: flex; + height: calc(100vh - 4.5rem * 2); + + > div { + box-shadow: none; + } + } + + &.alt-layout { + grid-template: + "ultimate-sidebar header header" auto + "ultimate-sidebar sidebar content" auto + "ultimate-sidebar dummy content" 1fr + / auto 18.75rem 1fr; + } + } + } + .normal-page__sidebar { grid-area: sidebar; } diff --git a/apps/frontend/src/components/ui/Collapsible.vue b/apps/frontend/src/components/ui/Collapsible.vue new file mode 100644 index 000000000..e930a26a6 --- /dev/null +++ b/apps/frontend/src/components/ui/Collapsible.vue @@ -0,0 +1,39 @@ + + + + diff --git a/apps/frontend/src/components/ui/ModerationChecklist.vue b/apps/frontend/src/components/ui/ModerationChecklist.vue index c7206fb42..41d2bc196 100644 --- a/apps/frontend/src/components/ui/ModerationChecklist.vue +++ b/apps/frontend/src/components/ui/ModerationChecklist.vue @@ -1,329 +1,362 @@