1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2025-01-24 10:43:58 +09:00
This commit is contained in:
NoriDev 2025-01-03 01:09:44 +09:00
parent 6052732134
commit 82cbe18fed
6 changed files with 7 additions and 2 deletions

View File

@ -145,6 +145,7 @@ defineProps<{
.badgeRole {
height: 1.3em;
vertical-align: -20%;
border-radius: 0.4em;
& + .badgeRole {
margin-left: 0.2em;

View File

@ -994,6 +994,7 @@ function showOnRemote() {
.noteHeaderBadgeRole {
height: 1.3em;
vertical-align: -20%;
border-radius: 0.4em;
& + .noteHeaderBadgeRole {
margin-left: 0.2em;
@ -1231,6 +1232,7 @@ function showOnRemote() {
.badgeRole {
height: 1.3em;
vertical-align: -20%;
border-radius: 0.4em;
& + .badgeRole {
margin-left: 0.2em;

View File

@ -164,6 +164,7 @@ function showOnRemote() {
.badgeRole {
height: 1.3em;
vertical-align: -20%;
border-radius: 0.4em;
& + .badgeRole {
margin-left: 0.2em;

View File

@ -46,7 +46,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<i v-else-if="notification.type === 'exportCompleted'" class="ti ti-archive"></i>
<i v-else-if="notification.type === 'login'" class="ti ti-login-2"></i>
<template v-else-if="notification.type === 'roleAssigned'">
<img v-if="notification.role.iconUrl" style="height: 1.3em; vertical-align: -22%;" :src="notification.role.iconUrl" alt=""/>
<img v-if="notification.role.iconUrl" style="height: 1.3em; vertical-align: -22%; border-radius: 0.4em;" :src="notification.role.iconUrl" alt=""/>
<i v-else class="ti ti-badges"></i>
</template>
<MkReactionIcon

View File

@ -75,6 +75,7 @@ const props = withDefaults(defineProps<{
.bodyBadge {
height: 1.3em;
vertical-align: -20%;
border-radius: 0.4em;
}
.bodyName {

View File

@ -60,7 +60,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="user.roles.length > 0" class="roles">
<span v-for="role in user.roles" :key="role.id" v-tooltip="role.description" class="role" :style="{ '--color': role.color }">
<MkA v-adaptive-bg :to="`/roles/${role.id}`">
<img v-if="role.iconUrl" style="height: 1.3em; vertical-align: -22%;" :src="role.iconUrl"/>
<img v-if="role.iconUrl" style="height: 1.3em; vertical-align: -22%; border-radius: 0.4em;" :src="role.iconUrl"/>
{{ role.name }}
</MkA>
</span>