Add configurable stacked recipe layout

This commit is contained in:
2026-08-03 22:19:54 -05:00
parent f4bb9323da
commit bc81e8403d
5 changed files with 22 additions and 5 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ Module.register("MMM-NextcloudCookbook", {
controlPath: "/MMM-NextcloudCookbook/control",
controlUrl: "",
animationSpeed: 400,
layout: "stacked",
shareUrl: "",
sharePassword: ""
},
@@ -156,7 +157,8 @@ Module.register("MMM-NextcloudCookbook", {
article.appendChild(header);
const columns = document.createElement("div");
columns.className = "ncc-columns";
const layout = this.config.layout === "side-by-side" ? "side-by-side" : "stacked";
columns.className = `ncc-columns ncc-layout-${layout}`;
const ingredients = document.createElement("section");
const ingredientsTitle = document.createElement("h2");