Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/common/styles/UsernameEffects.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,20 @@
animation-name: flipIn;
}

.reducedMotion .hoverTrigger:hover .wave,
.reducedMotion .hoverTrigger:hover .bounce {
animation: none;
}

.reducedMotion .hoverTrigger:hover .flip {
visibility: visible;
}

.reducedMotion .hoverTrigger:hover .flip::before,
.reducedMotion .hoverTrigger:hover .flip::after {
content: none;
}

@keyframes waveHop {
0%,
100% {
Expand Down
12 changes: 7 additions & 5 deletions src/modules/command_autocomplete/youtube/Autocomplete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,15 @@ class CommandAutocomplete {

const commandAutocompleteEnabled = getProSettingValue(SettingIds.CHATBOT_COMMAND_AUTOCOMPLETE, false);

chatInputElement.removeEventListener('focus', listener, true);
listener = null;

if (!commandAutocompleteEnabled || !this.dirty) {
chatInputElement.removeEventListener('focus', listener, true);
listener = null;
} else {
listener = this.ensureCommandsLoaded.bind(this);
chatInputElement.addEventListener('focus', listener, true);
return;
}

listener = this.ensureCommandsLoaded.bind(this);
chatInputElement.addEventListener('focus', listener, true);
}

async fetchChannelCommands() {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/emote_modal/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function loadAvailability(emoteId, userId, key) {
}

useEmoteModalStore.setState((state) => {
const current = state.availability[key];
const current = state.availability[key] === UNKNOWN_AVAILABILITY ? null : state.availability[key];
// adds performed while the lookup was in flight are fresher than the fetched snapshot
const merged = current == null && result === UNKNOWN_AVAILABILITY ? UNKNOWN_AVAILABILITY : {...result, ...current};
return {availability: {...state.availability, [key]: merged}};
Expand Down
4 changes: 2 additions & 2 deletions src/modules/seventv/channel-emotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class SevenTVChannelEmotes extends AbstractEmotes {

const existingEmote = this.getEligibleEmoteById(id);
if (existingEmote == null) {
return;
continue;
}

this.emotes.delete(existingEmote.code);
Expand All @@ -175,7 +175,7 @@ class SevenTVChannelEmotes extends AbstractEmotes {

const existingEmote = this.getEligibleEmoteById(id);
if (existingEmote == null) {
return;
continue;
}

this.emotes.delete(existingEmote.code);
Expand Down
Loading