mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 22:58:52 +02:00
fix(collection/presentation): images appear stretched
This commit is contained in:
parent
cd7a1af729
commit
3495ed82fb
@ -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<{}>) {
|
||||
|
@ -0,0 +1,4 @@
|
||||
figure img {
|
||||
aspect-ratio: unset !important;
|
||||
height: auto !important;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user