mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-28 06:19:26 +01:00
Side nav hidden on mobile tag adding
This commit is contained in:
parent
557e810c1f
commit
a5ac604683
@ -17,6 +17,8 @@ import './js/shortcuts/entry';
|
||||
/* Theme style */
|
||||
import './css/index.scss';
|
||||
|
||||
const mobileMaxWidth = 993;
|
||||
|
||||
const stickyNav = () => {
|
||||
const nav = $('.js-entry-nav-top');
|
||||
$('[data-toggle="actions"]').click(() => {
|
||||
@ -81,6 +83,9 @@ $(document).ready(() => {
|
||||
$('#nav-btn-add-tag').on('click', () => {
|
||||
$('.nav-panel-add-tag').toggle(100);
|
||||
$('.nav-panel-menu').addClass('hidden');
|
||||
if (window.innerWidth < mobileMaxWidth) {
|
||||
$('.side-nav').sideNav('hide');
|
||||
}
|
||||
$('#tag_label').focus();
|
||||
return false;
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user