From 8b2f9e2b77989bd2cc48ed6bfe92094a4b7b2d6a Mon Sep 17 00:00:00 2001 From: metacryst Date: Sun, 5 May 2024 15:48:32 -0500 Subject: [PATCH] add vstack children --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index c8efb82..8375623 100644 --- a/index.js +++ b/index.js @@ -583,6 +583,14 @@ window.VStack = function (cb = () => {}) { quillStyles.update(nowRendering.tagName.toLowerCase(), styles) cb() return nowRendering + } else { + let div = document.createElement("div") + div.classList.add("VStack") + div.style.display = "flex" + div.style.flexDirection = "column" + Registry.render(div) + cb() + return div } }