diff --git a/ea-scripts/index.md b/ea-scripts/index.md
index 13d81f4..46151c1 100644
--- a/ea-scripts/index.md
+++ b/ea-scripts/index.md
@@ -1,3 +1,5 @@
+Jump ahead to the [[#List of available scripts]]
+
[
](https://ko-fi.com/zsolt)
If you are enjoying the Excalidraw plugin then please support my work and enthusiasm by buying me a coffee on [https://ko-fi/zsolt](https://ko-fi.com/zsolt).
diff --git a/src/ScriptInstallPrompt.ts b/src/ScriptInstallPrompt.ts
index e1693fe..aefbf9f 100644
--- a/src/ScriptInstallPrompt.ts
+++ b/src/ScriptInstallPrompt.ts
@@ -15,6 +15,7 @@ export class ScriptInstallPrompt extends Modal {
async onOpen(): Promise {
this.contentEl.classList.add("excalidraw-scriptengine-install");
+ this.containerEl.classList.add("excalidraw-scriptengine-install");
try {
const source = await request({ url: URL });
await MarkdownRenderer.renderMarkdown(
@@ -23,7 +24,7 @@ export class ScriptInstallPrompt extends Modal {
"",
this.plugin,
);
- this.contentEl.querySelectorAll("h2[data-heading").forEach((el) => {
+ this.contentEl.querySelectorAll("h1[data-heading],h2[data-heading]").forEach((el) => {
el.setAttribute("id", el.getAttribute("data-heading"));
});
this.contentEl.querySelectorAll("ul>li>a.internal-link").forEach((el) => {
diff --git a/styles.css b/styles.css
index d06c847..309d100 100644
--- a/styles.css
+++ b/styles.css
@@ -126,3 +126,7 @@ li[data-testid] {
.modal-content.excalidraw-scriptengine-install {
max-width: 130ch;
}
+
+.excalidraw-scriptengine-install .modal {
+ max-height:90%;
+}
\ No newline at end of file