mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
updated css, index.md, modal css class
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -126,3 +126,7 @@ li[data-testid] {
|
||||
.modal-content.excalidraw-scriptengine-install {
|
||||
max-width: 130ch;
|
||||
}
|
||||
|
||||
.excalidraw-scriptengine-install .modal {
|
||||
max-height:90%;
|
||||
}
|
||||
Reference in New Issue
Block a user