fix(client): reaction viewer layout (#7942)
The profile picture and name should be grouped together as they belong, and it should be clear which picture belongs to which name.
This commit is contained in:
parent
6a9e52d83c
commit
0f9a6417b0
|
@ -9,12 +9,14 @@
|
||||||
<template v-if="users.length <= 10">
|
<template v-if="users.length <= 10">
|
||||||
<b v-for="u in users" :key="u.id" style="margin-right: 12px;">
|
<b v-for="u in users" :key="u.id" style="margin-right: 12px;">
|
||||||
<MkAvatar :user="u" style="width: 24px; height: 24px; margin-right: 2px;"/>
|
<MkAvatar :user="u" style="width: 24px; height: 24px; margin-right: 2px;"/>
|
||||||
|
<br/>
|
||||||
<MkUserName :user="u" :nowrap="false" style="line-height: 24px;"/>
|
<MkUserName :user="u" :nowrap="false" style="line-height: 24px;"/>
|
||||||
</b>
|
</b>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="10 < users.length">
|
<template v-if="10 < users.length">
|
||||||
<b v-for="u in users" :key="u.id" style="margin-right: 12px;">
|
<b v-for="u in users" :key="u.id" style="margin-right: 12px;">
|
||||||
<MkAvatar :user="u" style="width: 24px; height: 24px; margin-right: 2px;"/>
|
<MkAvatar :user="u" style="width: 24px; height: 24px; margin-right: 2px;"/>
|
||||||
|
<br/>
|
||||||
<MkUserName :user="u" :nowrap="false" style="line-height: 24px;"/>
|
<MkUserName :user="u" :nowrap="false" style="line-height: 24px;"/>
|
||||||
</b>
|
</b>
|
||||||
<span slot="omitted">+{{ count - 10 }}</span>
|
<span slot="omitted">+{{ count - 10 }}</span>
|
||||||
|
@ -64,7 +66,6 @@ export default defineComponent({
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
> .reaction {
|
> .reaction {
|
||||||
flex: 1;
|
|
||||||
max-width: 100px;
|
max-width: 100px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
@ -80,6 +81,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
> .users {
|
> .users {
|
||||||
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
|
Loading…
Reference in New Issue