Keep scroll to bottom and check 'more' button previews when toggling sidebars
This commit is contained in:
parent
f45f9a83ee
commit
5c69fe104d
@ -25,7 +25,7 @@ window.vueMounted = () => {
|
||||
function storeSidebarVisibility(name, state) {
|
||||
storage.set(name, state);
|
||||
|
||||
utils.togglePreviewMoreButtonsIfNeeded();
|
||||
vueApp.$emit("resize");
|
||||
}
|
||||
|
||||
// If sidebar overlay is visible and it is clicked, close the sidebar
|
||||
|
@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const $ = require("jquery");
|
||||
const debounce = require("lodash/debounce");
|
||||
const Mousetrap = require("mousetrap");
|
||||
const templates = require("../views");
|
||||
|
||||
|
@ -21,7 +21,6 @@ module.exports = {
|
||||
updateTitle,
|
||||
togglePasswordField,
|
||||
requestIdleCallback,
|
||||
togglePreviewMoreButtonsIfNeeded,
|
||||
};
|
||||
|
||||
function findCurrentNetworkChan(name) {
|
||||
@ -161,9 +160,3 @@ function requestIdleCallback(callback, timeout) {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
|
||||
// Force handling preview display
|
||||
function togglePreviewMoreButtonsIfNeeded() {
|
||||
$("#chat .chan.active .toggle-content.toggle-type-link.show")
|
||||
.trigger("showMoreIfNeeded");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user