Add configurable stacked recipe layout
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user