diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-14 11:46:22 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-14 11:46:22 +0900 |
| commit | 1e5d4db0a17f1b9f807300c16dcc619e93047589 (patch) | |
| tree | 34687e482c9aec9f04c694f2c3f4a1c3de456348 /packages/frontend/src/components/MkUsersTooltip.vue | |
| parent | refactor(client): use css modules (diff) | |
| download | misskey-1e5d4db0a17f1b9f807300c16dcc619e93047589.tar.gz misskey-1e5d4db0a17f1b9f807300c16dcc619e93047589.tar.bz2 misskey-1e5d4db0a17f1b9f807300c16dcc619e93047589.zip | |
refactor(client): use css modules
Diffstat (limited to 'packages/frontend/src/components/MkUsersTooltip.vue')
| -rw-r--r-- | packages/frontend/src/components/MkUsersTooltip.vue | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/packages/frontend/src/components/MkUsersTooltip.vue b/packages/frontend/src/components/MkUsersTooltip.vue index f0384e2d65..d0f95fceda 100644 --- a/packages/frontend/src/components/MkUsersTooltip.vue +++ b/packages/frontend/src/components/MkUsersTooltip.vue @@ -1,11 +1,11 @@ <template> <MkTooltip ref="tooltip" :showing="showing" :target-element="targetElement" :max-width="250" @closed="emit('closed')"> - <div class="beaffaef"> - <div v-for="u in users" :key="u.id" class="user"> - <MkAvatar class="avatar" :user="u"/> - <MkUserName class="name" :user="u" :nowrap="true"/> + <div :class="$style.root"> + <div v-for="u in users" :key="u.id" :class="$style.user"> + <MkAvatar :class="$style.avatar" :user="u"/> + <MkUserName :class="$style.name" :user="u" :nowrap="true"/> </div> - <div v-if="users.length < count" class="omitted">+{{ count - users.length }}</div> + <div v-if="users.length < count" :class="$style.omitted">+{{ count - users.length }}</div> </div> </MkTooltip> </template> @@ -26,26 +26,34 @@ const emit = defineEmits<{ }>(); </script> -<style lang="scss" scoped> -.beaffaef { +<style lang="scss" module> +.root { font-size: 0.9em; text-align: left; +} - > .user { - line-height: 24px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - - &:not(:last-child) { - margin-bottom: 3px; - } +.user { + line-height: 24px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; - > .avatar { - width: 24px; - height: 24px; - margin-right: 3px; - } + &:not(:last-child) { + margin-bottom: 3px; } } + +.name { + +} + +.omitted { + +} + +.avatar { + width: 24px; + height: 24px; + margin-right: 3px; +} </style> |