mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-06 17:41:01 +00:00
Extract Sticky Nav controller
This commit is contained in:
parent
2054be7bd4
commit
c9cfae11f7
4 changed files with 13 additions and 11 deletions
7
assets/controllers/sticky_nav_controller.js
Normal file
7
assets/controllers/sticky_nav_controller.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { Controller } from '@hotwired/stimulus';
|
||||
|
||||
export default class extends Controller {
|
||||
toggle() {
|
||||
this.element.classList.toggle('entry-nav-top--sticky');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue