fix: make bookmark compact grid actually compact (#6747)

This commit is contained in:
Thomas authored and GitHub committed 2026-08-30 21:37:37 +02:00
1 parent 8d8dec5749
commit 90c7493f15
8 files changed
+34 -3

No files matched your search

+14 -2
View File
@@ -240,8 +240,20 @@ export const getBookmarkDisplayPlan = ({
};
}
let columns: number = widthSettings.compactColumns;
let orientation: BookmarkOrientation = "horizontal";
if (layout === "gridHorizontal") {
return {
columns: Math.min(count, widthSettings.compactColumns),
horizontalScroll: false,
itemHeight: 56,
itemWidth: widthSettings.rowItemWidth,
orientation: "horizontal",
showHostname: widthSettings.showHostname && heightSettings.showHostname,
showTitle: widthSettings.showTitle && heightSettings.showTitle,
};
}
let columns: number = widthSettings.adaptiveColumns;
let orientation: BookmarkOrientation = widthSettings.adaptiveOrientation;
if (layout === "grid") {
columns = widthSettings.gridColumns;
orientation = "vertical";