From 0fc5c6c2e474d6b2fed0c36ab6a1677cf17d0090 Mon Sep 17 00:00:00 2001 From: Ryan McQuen Date: Fri, 8 Oct 2021 12:46:03 -0700 Subject: [PATCH] Ready to go! Signed-off-by: Ryan McQuen --- main.ts | 14 ++++++++------ package.json | 2 +- rollup.config.js | 1 - 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/main.ts b/main.ts index cf3f2fa..fe9f18e 100644 --- a/main.ts +++ b/main.ts @@ -84,16 +84,18 @@ class JavaScriptInitSettingTab extends PluginSettingTab { }); const textArea = resultant.inputEl; - const textAreaWrapper = - textArea.parentNode as unknown as HTMLDivElement; + const settingsWrapper = textArea.parentNode + .parentNode as unknown as HTMLDivElement; - textAreaWrapper.style.width = "100%"; - textAreaWrapper.style.display = "flex"; - textAreaWrapper.style.flexDirection = "row"; + settingsWrapper.style.display = "grid"; + settingsWrapper.style.gridTemplateRows = "2fr"; textArea.style.fontFamily = "monospace"; textArea.style.fontSize = "80%"; - textArea.style.flex = "1"; + + textArea.style.marginTop = "1rem"; + textArea.style.height = "20rem"; + textArea.style.width = "100%"; return resultant; }); diff --git a/package.json b/package.json index 3d2ed18..bbe90f2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@rollup/plugin-node-resolve": "^11.2.1", "@rollup/plugin-typescript": "^8.2.1", "@types/node": "^14.17.21", - "obsidian": "^0.12.0", + "obsidian": "^0.12.17", "rollup": "^2.32.1", "tslib": "^2.2.0", "typescript": "^4.2.4" diff --git a/rollup.config.js b/rollup.config.js index bf43088..56f65d4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,5 +1,4 @@ import typescript from "@rollup/plugin-typescript"; -import { nodeResolve } from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; const isProd = process.env.BUILD === "production";