Fix highlighting single-grouped item
Hide pinned message unpin button if many
This commit is contained in:
parent
1699536af9
commit
571eb3a4bd
@ -643,7 +643,7 @@ export default class ChatBubbles {
|
|||||||
public getMountedBubble(mid: number) {
|
public getMountedBubble(mid: number) {
|
||||||
const message = this.appMessagesManager.getMessage(mid);
|
const message = this.appMessagesManager.getMessage(mid);
|
||||||
|
|
||||||
if(message.grouped_id) {
|
if(message.grouped_id && this.appMessagesManager.getMidsByAlbum(message.grouped_id).length > 1) {
|
||||||
const a = this.getGroupedBubble(message.grouped_id);
|
const a = this.getGroupedBubble(message.grouped_id);
|
||||||
if(a) {
|
if(a) {
|
||||||
a.bubble = a.bubble.querySelector(`.document-container[data-mid="${mid}"]`) || a.bubble;
|
a.bubble = a.bubble.querySelector(`.document-container[data-mid="${mid}"]`) || a.bubble;
|
||||||
|
@ -342,6 +342,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.is-many {
|
&.is-many {
|
||||||
|
.pinned-message-close {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
&:not(.is-floating) {
|
&:not(.is-floating) {
|
||||||
.pinned-message-pinlist {
|
.pinned-message-pinlist {
|
||||||
display: none;
|
display: none;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user