updated css, index.md, modal css class

This commit is contained in:
Zsolt Viczian
2022-01-02 19:00:50 +01:00
parent 73b31627f3
commit c0eb85abf5
3 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
Jump ahead to the [[#List of available scripts]]
[<img src="https://user-images.githubusercontent.com/14358394/115450238-f39e8100-a21b-11eb-89d0-fa4b82cdbce8.png" class="coffee">](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).

View File

@@ -15,6 +15,7 @@ export class ScriptInstallPrompt extends Modal {
async onOpen(): Promise<void> {
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) => {

View File

@@ -126,3 +126,7 @@ li[data-testid] {
.modal-content.excalidraw-scriptengine-install {
max-width: 130ch;
}
.excalidraw-scriptengine-install .modal {
max-height:90%;
}