Merge pull request #8043 from wallabag/fix-fab

Fix Floating Action Button
This commit is contained in:
Yassine Guedidi 2025-03-02 04:21:42 +01:00 committed by GitHub
commit f1ccc298ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -262,10 +262,10 @@ const articleScroll = () => {
const toggleScrollDataName = 'toggle-auto';
if ((s + c) > articleElBottom) {
fixedActionBtn.data(toggleScrollDataName, true);
fixedActionBtn.openFAB();
fixedActionBtn.floatingActionButton('open');
} else if (fixedActionBtn.data(toggleScrollDataName) === true) {
fixedActionBtn.data(toggleScrollDataName, false);
fixedActionBtn.closeFAB();
fixedActionBtn.floatingActionButton('close');
}
});
}
@ -289,6 +289,7 @@ $(document).ready(() => {
$('.tabs').tabs();
$('.tooltipped').tooltip();
$('.fixed-action-btn').floatingActionButton();
initFilters();
initExport();