mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-04 14:41:42 +08:00
fix(client): bookmark alignment on horizontal layout
This commit is contained in:
parent
a13c0a5743
commit
8dd9510de8
@ -4,8 +4,8 @@ import BookmarkFolderWidget from "./buttons/bookmark_folder.js";
|
|||||||
import froca from "../services/froca.js";
|
import froca from "../services/froca.js";
|
||||||
|
|
||||||
export default class BookmarkButtons extends FlexContainer {
|
export default class BookmarkButtons extends FlexContainer {
|
||||||
constructor() {
|
constructor(isHorizontalLayout) {
|
||||||
super("column");
|
super(isHorizontalLayout ? "row" : "column");
|
||||||
|
|
||||||
this.contentSized();
|
this.contentSized();
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ export default class LauncherWidget extends BasicWidget {
|
|||||||
|
|
||||||
return new SpacerWidget(baseSize, growthFactor);
|
return new SpacerWidget(baseSize, growthFactor);
|
||||||
case "bookmarks":
|
case "bookmarks":
|
||||||
return new BookmarkButtons();
|
return new BookmarkButtons(this.isHorizontalLayout);
|
||||||
case "protectedSession":
|
case "protectedSession":
|
||||||
return new ProtectedSessionStatusWidget();
|
return new ProtectedSessionStatusWidget();
|
||||||
case "syncStatus":
|
case "syncStatus":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user