You've already forked AstralRinth
feat: new proj moderation page (#6044)
* feat: new proj moderation page * make requested changes * add boolean for showing delay message * fix server icon + shortened code * fix server icon * refactor admonitions * msg correction. * correction + change spam-notice * Separate status info from instruction details * Tweak timing delay msg, thread activity warning, and refer to moderation with consistent terms. * Whoops, actually updated msgs correctly now. * prepr + margin * split out strings, simplify code again * fix: a few more moderation fixes (#6048) * fix: move tooltip to button * fix: lock status buttons after pressing * fix: unlisted/withheld icon on legacy badge * prepprrr * fix banners, add some extra dev mode stuff * fix thread id copy padding * tweak: adjust some of the status change messages (#6041) * update messages & bunch of other stuff * rename toggle * change hover to 2.5, fix error size * private msg overlay --------- Co-authored-by: coolbot100s <76798835+coolbot100s@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<div
|
||||
:class="['banner-grid relative border-b-2 border-solid border-0', containerClasses[variant]]"
|
||||
:class="[
|
||||
'banner-grid relative border-b-2 border-solid border-0 z-10',
|
||||
containerClasses[variant],
|
||||
{ 'no-actions': !$slots.actions, slim: slim },
|
||||
]"
|
||||
>
|
||||
<div
|
||||
:class="[
|
||||
@@ -16,12 +20,20 @@
|
||||
<slot name="description" />
|
||||
</div>
|
||||
|
||||
<div v-if="$slots.actions" class="grid-area-[actions]">
|
||||
<div v-if="$slots.actions" class="grid-area-[actions] flex items-center gap-2">
|
||||
<slot name="actions" />
|
||||
</div>
|
||||
|
||||
<div v-if="$slots.actions_right" class="grid-area-[actions_right]">
|
||||
<slot name="actions_right" />
|
||||
<div
|
||||
v-if="$slots.actions_right || $slots.actions_top_right"
|
||||
class="grid-area-[actions_right] flex flex-col gap-2 items-end"
|
||||
>
|
||||
<div v-if="$slots.actions_top_right" class="flex items-center gap-2 justify-end">
|
||||
<slot name="actions_top_right" />
|
||||
</div>
|
||||
<div v-if="$slots.actions_right" class="flex items-center gap-2 justify-end my-auto">
|
||||
<slot name="actions_right" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -29,9 +41,15 @@
|
||||
<script lang="ts" setup>
|
||||
import { getSeverityIcon } from '../../utils'
|
||||
|
||||
defineProps<{
|
||||
variant: 'error' | 'warning' | 'info'
|
||||
}>()
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
variant: 'error' | 'warning' | 'info'
|
||||
slim?: boolean
|
||||
}>(),
|
||||
{
|
||||
slim: false,
|
||||
},
|
||||
)
|
||||
|
||||
const containerClasses = {
|
||||
error: 'bg-banners-error-bg text-banners-error-text border-banners-error-border',
|
||||
@@ -58,6 +76,16 @@ const iconClasses = {
|
||||
padding-inline: max(calc((100% - 80rem) / 2 + var(--gap-md)), var(--gap-xl));
|
||||
}
|
||||
|
||||
.banner-grid.no-actions {
|
||||
grid-template-areas:
|
||||
'title actions_right'
|
||||
'description actions_right';
|
||||
}
|
||||
|
||||
.banner-grid.slim {
|
||||
@apply flex py-4 gap-2 items-center;
|
||||
}
|
||||
|
||||
.grid-area-\[title\] {
|
||||
grid-area: title;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user