Browse Source

Fix highlighting single-grouped item

Hide pinned message unpin button if many
master
Eduard Kuzmenko 4 years ago
parent
commit
571eb3a4bd
  1. 2
      src/components/chat/bubbles.ts
  2. 4
      src/scss/partials/_chatPinned.scss

2
src/components/chat/bubbles.ts

@ -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;

4
src/scss/partials/_chatPinned.scss

@ -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…
Cancel
Save