mirror of
https://github.com/ryanpcmcquen/obsidian-javascript-init.git
synced 2026-07-22 06:00:30 +00:00
Ready to go!
Signed-off-by: Ryan McQuen <rpcm@linux.com>
This commit is contained in:
parent
567b95a0ed
commit
0fc5c6c2e4
3 changed files with 9 additions and 8 deletions
14
main.ts
14
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;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue