mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 03:26:22 +00:00
fix: embed pdf aspect ratio (closes #1310)
This commit is contained in:
parent
407fad384c
commit
3938904cd0
2 changed files with 3 additions and 2 deletions
|
@ -263,7 +263,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
|
||||||
} else if ([".pdf"].includes(ext)) {
|
} else if ([".pdf"].includes(ext)) {
|
||||||
return {
|
return {
|
||||||
type: "html",
|
type: "html",
|
||||||
value: `<iframe src="${url}"></iframe>`,
|
value: `<iframe src="${url}" class="pdf"></iframe>`,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const block = anchor
|
const block = anchor
|
||||||
|
|
|
@ -542,7 +542,8 @@ ol.overflow {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.external-embed.youtube {
|
.external-embed.youtube,
|
||||||
|
iframe.pdf {
|
||||||
aspect-ratio: 16 / 9;
|
aspect-ratio: 16 / 9;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Reference in a new issue