Skip to content

Commit

Permalink
Remove unused media-spoiler-* JS/CSS (mastodon#29407)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Feb 26, 2024
1 parent 10fdd88 commit c755527
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
12 changes: 0 additions & 12 deletions app/javascript/packs/admin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,6 @@ Rails.delegate(document, batchCheckboxClassName, 'change', () => {
}
});

Rails.delegate(document, '.media-spoiler-show-button', 'click', () => {
[].forEach.call(document.querySelectorAll('button.media-spoiler'), (element) => {
element.click();
});
});

Rails.delegate(document, '.media-spoiler-hide-button', 'click', () => {
[].forEach.call(document.querySelectorAll('.spoiler-button.spoiler-button--visible button'), (element) => {
element.click();
});
});

Rails.delegate(document, '.filter-subset--with-select select', 'change', ({ target }) => {
target.form.submit();
});
Expand Down
10 changes: 0 additions & 10 deletions app/javascript/styles/mastodon/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -622,16 +622,6 @@ body,
input.button {
margin: 0 5px 5px 0;
}

.media-spoiler-toggle-buttons {
margin-inline-start: auto;

.button {
overflow: visible;
margin: 0 0 5px 5px;
float: right;
}
}
}

.back-link {
Expand Down

0 comments on commit c755527

Please sign in to comment.