diff --git a/customGenerator.html b/customGenerator.html index 9dfcfd5..e012f42 100644 --- a/customGenerator.html +++ b/customGenerator.html @@ -8,9 +8,10 @@ #maindiv { position: absolute; width: 50vw; - height: 100%; + height: 100vh; left: 0; top: 0; + overflow-y: auto; } #preview { @@ -19,6 +20,8 @@ height: 100vh; right: 0; top: 0; + word-break: break-all; + overflow-y: auto; } .bordered { diff --git a/index.css b/index.css index 67c8822..4794987 100644 --- a/index.css +++ b/index.css @@ -1195,6 +1195,7 @@ form { display: inline-block; background-color: lightgray; padding: 0.5em; + word-break: break-all; } .iframe-code-block { diff --git a/themeGenerator.ts b/themeGenerator.ts index 569f4e4..f2659ab 100644 --- a/themeGenerator.ts +++ b/themeGenerator.ts @@ -43,7 +43,12 @@ export class Preview extends UIElement { InnerRender(): string { const url = this.url.data; - return JSON.stringify(this.config.data, null, 2) + return new Combine([ + ``, + `

Save this link below:

${this.url.data}`, + JSON.stringify(this.config.data, null, 2).replace(/\n/g, "
").replace(/ /g, " "), + + ]).Render(); } }