Skip to content

Commit 4572406

Browse files
authored
Merge pull request #12612 from nextcloud/backport/12602/stable29
[stable29] fix(Reactions): improve styling in popover
2 parents 191e74b + ded6fce commit 4572406

File tree

1 file changed

+16
-6
lines changed
  • src/components/MessagesList/MessagesGroup/Message/MessagePart

1 file changed

+16
-6
lines changed

src/components/MessagesList/MessagesGroup/Message/MessagePart/Reactions.vue

+16-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@
3939
</template>
4040

4141
<div v-if="hasReactionsLoaded" class="reaction-details">
42-
<span>{{ getReactionSummary(reaction) }}</span>
43-
<NcButton v-if="reactionsCount(reaction) > 3"
44-
type="tertiary-no-background"
45-
@click="showAllReactions = true">
46-
{{ remainingReactionsLabel(reaction) }}
47-
</NcButton>
42+
<span>{{ getReactionSummary(reaction) }}
43+
<a v-if="reactionsCount(reaction) > 3"
44+
class="more-reactions-button"
45+
role="button"
46+
tabindex="0"
47+
@click.prevent="showAllReactions = true">
48+
{{ remainingReactionsLabel(reaction) }}
49+
</a>
50+
</span>
4851
</div>
4952
<div v-else class="details-loading">
5053
<NcLoadingIcon />
@@ -303,6 +306,7 @@ export default {
303306

304307
.reaction-details {
305308
padding: 8px;
309+
max-width: 250px;
306310
}
307311

308312
.details-loading {
@@ -311,4 +315,10 @@ export default {
311315
width: 38px;
312316
}
313317

318+
.more-reactions-button {
319+
text-decoration: underline;
320+
&:hover {
321+
text-decoration: none;
322+
}
323+
}
314324
</style>

0 commit comments

Comments
 (0)