andrejilderda / joplin-macos-native-theme

Native looking macOS theme for note taking app Joplin
MIT License
279 stars 14 forks source link

PDF preview in rendered markdown #100

Closed mikicvi closed 1 year ago

mikicvi commented 1 year ago

Hi,

The PDF preview in rendered markdown is tiny on the Windows desktop app.

On 100% Joplin scaling, it looks like this on a laptop with a FullHD16:10 aspect ratio (1920x1200 resolution). No custom CSS loaded, just the theme.

image

When using the default app a pdf preview looks like this

image

Is there any way to change this behaviour? Maybe through userstyle.css?

mikicvi commented 1 year ago

The workaround is to edit userstyle.css while targeting the .media-player-media-pdf and changing the min-height element to something like 45rem.

Example below

.media-player.media-pdf {
    min-height: 49rem;
}

Edit: Important to note that the min-height of the media player is the same in both the default Joplin theme and this one. So this is likely caused by something else controlling the markdown-preview section.

andrejilderda commented 1 year ago

Thanks for providing a workaround!