mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 00:16:31 +01:00
33 lines
641 B
Vue
33 lines
641 B
Vue
|
<template>
|
||
|
<MkA v-adaptive-bg :to="`/admin/roles/${role.id}`" class="_panel" :class="$style.root" tabindex="-1" :style="{ '--color': role.color }">
|
||
|
<div :class="$style.title">{{ role.name }}</div>
|
||
|
<div :class="$style.description">{{ role.description }}</div>
|
||
|
</MkA>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts" setup>
|
||
|
import { } from 'vue';
|
||
|
import * as misskey from 'misskey-js';
|
||
|
import * as os from '@/os';
|
||
|
|
||
|
const props = defineProps<{
|
||
|
role: any;
|
||
|
}>();
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" module>
|
||
|
.root {
|
||
|
display: block;
|
||
|
padding: 16px 20px;
|
||
|
border-left: solid 6px var(--color);
|
||
|
}
|
||
|
|
||
|
.title {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.description {
|
||
|
opacity: 0.7;
|
||
|
}
|
||
|
</style>
|