fix(collection/presentation): images appear stretched

This commit is contained in:
Elian Doran 2025-10-15 21:30:21 +03:00
parent cd7a1af729
commit 3495ed82fb
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import { useEffect, useLayoutEffect, useRef, useState } from "preact/hooks";
import Reveal from "reveal.js";
import slideBaseStylesheet from "reveal.js/dist/reveal.css?raw";
import slideThemeStylesheet from "reveal.js/dist/theme/black.css?raw";
import slideCustomStylesheet from "./slidejs.css?raw";
import { buildPresentationModel, PresentationModel, PresentationSlideModel } from "./model";
import ShadowDom from "../../react/ShadowDom";
import ActionButton from "../../react/ActionButton";
@ -11,7 +12,8 @@ import { RefObject } from "preact";
const stylesheets = [
slideBaseStylesheet,
slideThemeStylesheet
slideThemeStylesheet,
slideCustomStylesheet
].map(stylesheet => stylesheet.replace(/:root/g, ":host"));
export default function PresentationView({ note }: ViewModeProps<{}>) {

View File

@ -0,0 +1,4 @@
figure img {
aspect-ratio: unset !important;
height: auto !important;
}