Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DES-199: add an option to disable emote and flair animations #420

Merged
merged 4 commits into from
Feb 29, 2024
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
13 changes: 13 additions & 0 deletions assets/chat/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,19 @@ hr {
.pref-autocompletehelper #chat-auto-complete.active {
display: block;
}
.pref-disableanimations {
.emote,
.emote:hover,
.emote::before,
.emote::after {
animation: none !important;
}

a.user,
span.user {
animation: none !important;
}
}

/* OverlayScrollbars theme */
.dgg-scroller-theme.os-scrollbar-horizontal {
Expand Down
1 change: 1 addition & 0 deletions assets/chat/js/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const settingsdefault = new Map(
hidensfl: false,
fontscale: 'auto',
censorbadwords: false,
disableanimations: false,
}),
);

Expand Down
6 changes: 6 additions & 0 deletions assets/views/embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ <h4>Messages</h4>
<option value="2">do nothing</option>
</select>
</div>
<div class="form-group checkbox">
<label title="Disable animations when possible">
<input name="disableanimations" type="checkbox" /> Disable
animations when possible
</label>
</div>

<h4>Notifications</h4>
<div class="form-group checkbox">
Expand Down