fix(bookmarks): improve responsive styles (#2536)

* fix(bookmarks): improve responsive styles

* fix: typecheck issue
This commit is contained in:
Meier Lukas
2025-03-08 20:54:12 +01:00
committed by GitHub
parent ac5fc38ec0
commit df249a0173
4 changed files with 105 additions and 64 deletions

View File

@@ -14,12 +14,13 @@ export const { definition, componentLoader } = createWidgetDefinition("bookmarks
return optionsBuilder.from((factory) => ({
title: factory.text(),
layout: factory.select({
options: (["grid", "row", "column"] as const).map((value) => ({
options: (["grid", "gridHorizontal", "row", "column"] as const).map((value) => ({
value,
label: (t) => t(`widget.bookmarks.option.layout.option.${value}.label`),
})),
defaultValue: "column",
}),
hideTitle: factory.switch({ defaultValue: false }),
hideIcon: factory.switch({ defaultValue: false }),
hideHostname: factory.switch({ defaultValue: false }),
openNewTab: factory.switch({ defaultValue: true }),