mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 17:23:09 +02:00
fix(client): cat ears are clipped in MkReactionsViewer (#10445)
* fix: cat ears are clipped in MkReactionsViewer * fix: missing padding * fix border --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:
parent
7d3b7986e5
commit
c47a0f78ff
1 changed files with 10 additions and 9 deletions
|
@ -10,7 +10,7 @@
|
|||
<MkAvatar :class="$style.avatar" :user="u"/>
|
||||
<MkUserName :user="u" :nowrap="true"/>
|
||||
</div>
|
||||
<div v-if="users.length > 10">+{{ count - 10 }}</div>
|
||||
<div v-if="users.length > 10" :class="$style.more">+{{ count - 10 }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</MkTooltip>
|
||||
|
@ -50,7 +50,9 @@ function getReactionName(reaction: string): string {
|
|||
|
||||
.reaction {
|
||||
max-width: 100px;
|
||||
padding-right: 10px;
|
||||
text-align: center;
|
||||
border-right: solid 0.5px var(--divider);
|
||||
}
|
||||
|
||||
.reactionIcon {
|
||||
|
@ -66,25 +68,20 @@ function getReactionName(reaction: string): string {
|
|||
}
|
||||
|
||||
.users {
|
||||
contain: content;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin: -4px 14px 0 10px;
|
||||
font-size: 0.95em;
|
||||
border-left: solid 0.5px var(--divider);
|
||||
padding-left: 10px;
|
||||
margin-left: 10px;
|
||||
margin-right: 14px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.user {
|
||||
line-height: 24px;
|
||||
padding-top: 4px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
.avatar {
|
||||
|
@ -92,4 +89,8 @@ function getReactionName(reaction: string): string {
|
|||
height: 24px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.more {
|
||||
padding-top: 4px;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue