mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
refactor: 💄 style punishments
This commit is contained in:
parent
76a81d1451
commit
4b0042cf9a
1 changed files with 36 additions and 25 deletions
|
@ -7,23 +7,6 @@
|
|||
:class="{ wide: !narrow }"
|
||||
>
|
||||
<div class="main">
|
||||
<div v-if="$i?.isModerator || $i?.isAdmin">
|
||||
<div class="punished" v-if="user.isSilenced">
|
||||
<i
|
||||
class="ph-warning ph-bold ph-lg"
|
||||
style="margin-right: 8px; color: var(--warn)"
|
||||
></i>
|
||||
{{ i18n.ts.silenced }}
|
||||
</div>
|
||||
<div class="punished" v-if="user.isSuspended">
|
||||
<i
|
||||
class="ph-warning ph-bold ph-lg"
|
||||
style="margin-right: 8px; color: var(--warn)"
|
||||
></i>
|
||||
{{ i18n.ts.suspended }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="profile">
|
||||
<MkMoved
|
||||
v-if="user.movedToUri"
|
||||
|
@ -130,6 +113,25 @@
|
|||
class="followed"
|
||||
>{{ i18n.ts.followsYou }}</span
|
||||
>
|
||||
<div
|
||||
v-if="$i?.isModerator || $i?.isAdmin"
|
||||
class="punishments"
|
||||
>
|
||||
<span
|
||||
class="punished"
|
||||
v-if="user.isSilenced"
|
||||
>
|
||||
<i class="ph-warning ph-bold ph-lg"></i>
|
||||
{{ i18n.ts.silenced }}
|
||||
</span>
|
||||
<span
|
||||
class="punished"
|
||||
v-if="user.isSuspended"
|
||||
>
|
||||
<i class="ph-warning ph-bold ph-lg"></i>
|
||||
{{ i18n.ts.suspended }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<span class="username"
|
||||
|
@ -458,14 +460,6 @@ onUnmounted(() => {
|
|||
<style lang="scss" scoped>
|
||||
.ftskorzw {
|
||||
> .main {
|
||||
> .punished {
|
||||
font-size: 0.8em;
|
||||
padding: 10px;
|
||||
color: var(--infoWarnBg);
|
||||
background-color: var(--infoWarnFg);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
> .profile {
|
||||
> .main {
|
||||
position: relative;
|
||||
|
@ -522,6 +516,23 @@ onUnmounted(() => {
|
|||
border-radius: 6px;
|
||||
}
|
||||
|
||||
> .punishments {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
margin-top: 0.5rem;
|
||||
|
||||
> .punished {
|
||||
padding: 10px;
|
||||
color: var(--infoWarnBg);
|
||||
background-color: var(--infoWarnFg);
|
||||
border-radius: 10px;
|
||||
|
||||
> i {
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .title {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
|
Loading…
Reference in a new issue