@marimo-team/islands 0.21.2-dev70 → 0.21.2-dev72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/css/md.css
CHANGED
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
margin-block-end: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
.markdown ul li,
|
|
16
|
+
.markdown ol li {
|
|
17
|
+
margin-block: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Restore browser default bullet cycling that Tailwind Typography overrides */
|
|
21
|
+
.markdown ul ul {
|
|
22
|
+
list-style-type: revert;
|
|
23
|
+
}
|
|
24
|
+
|
|
15
25
|
.markdown h1 {
|
|
16
26
|
text-align: start;
|
|
17
27
|
}
|
|
@@ -301,8 +301,9 @@ export class MatplotlibRenderer {
|
|
|
301
301
|
canvas.width = this.#state.width * dpr;
|
|
302
302
|
canvas.height = this.#state.height * dpr;
|
|
303
303
|
canvas.style.width = `${this.#state.width}px`;
|
|
304
|
-
canvas.style.height = `${this.#state.height}px`;
|
|
305
304
|
canvas.style.maxWidth = "100%";
|
|
305
|
+
canvas.style.height = "auto";
|
|
306
|
+
canvas.style.aspectRatio = `${this.#state.width} / ${this.#state.height}`;
|
|
306
307
|
canvas.style.touchAction = "none";
|
|
307
308
|
container.append(canvas);
|
|
308
309
|
this.#canvas = canvas;
|
|
@@ -344,7 +345,9 @@ export class MatplotlibRenderer {
|
|
|
344
345
|
this.#canvas.width = state.width * dpr;
|
|
345
346
|
this.#canvas.height = state.height * dpr;
|
|
346
347
|
this.#canvas.style.width = `${state.width}px`;
|
|
347
|
-
this.#canvas.style.
|
|
348
|
+
this.#canvas.style.maxWidth = "100%";
|
|
349
|
+
this.#canvas.style.height = "auto";
|
|
350
|
+
this.#canvas.style.aspectRatio = `${state.width} / ${state.height}`;
|
|
348
351
|
needsRedraw = true;
|
|
349
352
|
}
|
|
350
353
|
|