Skip to content

Commit

Permalink
fix(client): cat ears are clipped in MkReactionsViewer (misskey-dev#1…
Browse files Browse the repository at this point in the history
…0445)

* fix: cat ears are clipped in MkReactionsViewer

* fix: missing padding

* fix border

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
  • Loading branch information
2 people authored and na2na-p committed May 10, 2023
1 parent 0b54478 commit 79b7a6a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/frontend/src/components/MkReactionsViewer.details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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 {
Expand All @@ -66,30 +68,29 @@ 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 {
width: 24px;
height: 24px;
margin-right: 3px;
}
.more {
padding-top: 4px;
}
</style>

0 comments on commit 79b7a6a

Please sign in to comment.