mirror of
https://github.com/nextcloud/spreed.git
synced 2025-08-16 15:27:59 +00:00
fix(ConversationIcon): use simple icons for dummy groups
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
@ -139,28 +139,3 @@ body[data-theme-dark] .icon-user-forced-white {
|
||||
background-image: url(../img/app-dark.svg);
|
||||
filter: var(--background-invert-if-dark);
|
||||
}
|
||||
|
||||
/* To be used in new conversation / invitation handler dialogs */
|
||||
.conversation-icon .icon-conversation-group.icon--dark {
|
||||
background-image: url('../img/icon-conversation-group-dark.svg')
|
||||
}
|
||||
|
||||
.conversation-icon .icon-conversation-group.icon--bright {
|
||||
background-image: url('../img/icon-conversation-group-bright.svg')
|
||||
}
|
||||
|
||||
.conversation-icon .icon-conversation-public.icon--dark {
|
||||
background-image: url('../img/icon-conversation-public-dark.svg')
|
||||
}
|
||||
|
||||
.conversation-icon .icon-conversation-public.icon--bright {
|
||||
background-image: url('../img/icon-conversation-public-bright.svg')
|
||||
}
|
||||
|
||||
.conversation-icon .icon-conversation-federation.icon--dark {
|
||||
background-image: url('../img/icon-conversation-federation-dark.svg')
|
||||
}
|
||||
|
||||
.conversation-icon .icon-conversation-federation.icon--bright {
|
||||
background-image: url('../img/icon-conversation-federation-bright.svg')
|
||||
}
|
||||
|
@ -178,10 +178,7 @@ export default {
|
||||
iconClass() {
|
||||
if (this.item.isDummyConversation) {
|
||||
// Prevent a 404 when trying to load an avatar before the conversation data is actually loaded
|
||||
// Also used in new conversation / invitation handler dialog
|
||||
const isFed = this.item.remoteServer && 'icon-conversation-federation'
|
||||
const type = this.item.type === CONVERSATION.TYPE.PUBLIC ? 'icon-conversation-public' : 'icon-conversation-group'
|
||||
return `${isFed || type} icon--dummy`
|
||||
return this.item.type === CONVERSATION.TYPE.PUBLIC ? 'icon-public' : 'icon-contacts'
|
||||
}
|
||||
|
||||
if (!supportsAvatar) {
|
||||
@ -268,10 +265,6 @@ export default {
|
||||
background-size: calc(var(--icon-size) / 2);
|
||||
background-color: var(--color-text-maxcontrast-default);
|
||||
|
||||
&--dummy {
|
||||
background-size: var(--icon-size);
|
||||
}
|
||||
|
||||
&.icon-changelog {
|
||||
background-size: cover !important;
|
||||
}
|
||||
|
Reference in New Issue
Block a user