mirror of https://github.com/TriliumNext/Notes
feat(mobile): implement simple slide effect for tree
parent
748eedbbd2
commit
61ccee27f2
@ -0,0 +1,19 @@
|
|||||||
|
import FlexContainer from "../containers/flex_container.js";
|
||||||
|
|
||||||
|
export default class SidebarContainer extends FlexContainer {
|
||||||
|
|
||||||
|
constructor(screenName, direction) {
|
||||||
|
super(direction);
|
||||||
|
|
||||||
|
this.screenName = screenName;
|
||||||
|
}
|
||||||
|
|
||||||
|
activeScreenChangedEvent({activeScreen}) {
|
||||||
|
if (activeScreen === this.screenName) {
|
||||||
|
this.$widget.addClass('show');
|
||||||
|
} else {
|
||||||
|
this.$widget.removeClass('show');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue