mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +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 Reveal from "reveal.js";
|
||||||
import slideBaseStylesheet from "reveal.js/dist/reveal.css?raw";
|
import slideBaseStylesheet from "reveal.js/dist/reveal.css?raw";
|
||||||
import slideThemeStylesheet from "reveal.js/dist/theme/black.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 { buildPresentationModel, PresentationModel, PresentationSlideModel } from "./model";
|
||||||
import ShadowDom from "../../react/ShadowDom";
|
import ShadowDom from "../../react/ShadowDom";
|
||||||
import ActionButton from "../../react/ActionButton";
|
import ActionButton from "../../react/ActionButton";
|
||||||
@ -11,7 +12,8 @@ import { RefObject } from "preact";
|
|||||||
|
|
||||||
const stylesheets = [
|
const stylesheets = [
|
||||||
slideBaseStylesheet,
|
slideBaseStylesheet,
|
||||||
slideThemeStylesheet
|
slideThemeStylesheet,
|
||||||
|
slideCustomStylesheet
|
||||||
].map(stylesheet => stylesheet.replace(/:root/g, ":host"));
|
].map(stylesheet => stylesheet.replace(/:root/g, ":host"));
|
||||||
|
|
||||||
export default function PresentationView({ note }: ViewModeProps<{}>) {
|
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