Some more fixes

This commit is contained in:
Eduard Kuzmenko 2022-03-24 16:30:00 +02:00
parent c4827d50f6
commit 6ad70b3f06
3 changed files with 4 additions and 3 deletions

View File

@ -77,7 +77,7 @@ export class SuperRLottieIcon<Options extends {
let changedPartState = false, changedColorState = false;
if(partState !== undefined) changedPartState = this.setPartState(partState, colorState, partCallback);
else if(colorState !== undefined && this.getColor) changedColorState = this.setColorState(colorState);
else if(colorState !== undefined) changedColorState = this.setColorState(colorState);
return changedPartState || changedColorState;
}
@ -102,7 +102,7 @@ export class SuperRLottieIcon<Options extends {
public setColorState(state: Options['ColorState'], renderIfPaused = true) {
const {colorState: prevState} = this;
if(prevState === state) {
if(prevState === state || !this.getColor) {
return false;
}

View File

@ -100,6 +100,7 @@
}
&-button {
opacity: 1;
color: var(--gc-primary-text-color);
background-color: var(--gc-button-unmuted-color);

View File

@ -349,8 +349,8 @@ $chat-input-inner-padding-handhelds: .25rem;
@import "partials/popups/instanceDeactivated";
@import "partials/popups/joinChatInvite";
@import "partials/popups/reportMessages";
@import "partials/popups/groupCall";
@import "partials/popups/call";
@import "partials/popups/groupCall";
@import "partials/popups/sponsored";
@import "partials/popups/mute";
@import "partials/popups/reactedList";