fix(client): bookmark alignment on horizontal layout

This commit is contained in:
Elian Doran 2024-11-24 12:17:47 +02:00
parent a13c0a5743
commit 8dd9510de8
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -4,8 +4,8 @@ import BookmarkFolderWidget from "./buttons/bookmark_folder.js";
import froca from "../services/froca.js";
export default class BookmarkButtons extends FlexContainer {
constructor() {
super("column");
constructor(isHorizontalLayout) {
super(isHorizontalLayout ? "row" : "column");
this.contentSized();
}

View File

@ -101,7 +101,7 @@ export default class LauncherWidget extends BasicWidget {
return new SpacerWidget(baseSize, growthFactor);
case "bookmarks":
return new BookmarkButtons();
return new BookmarkButtons(this.isHorizontalLayout);
case "protectedSession":
return new ProtectedSessionStatusWidget();
case "syncStatus":