Quick look for markdown files is shown with extra margin on Mac OS Monterey 12.0.1
olshevski opened this issue · 9 comments
I'm using the latest version 1.0.6 of QLMarkdown.
The default Quick-Look window size may be different in Monterey. These CSS settings mimic Github.com
Here is the part about the margin;
QLMarkdown/Resources/default.css
Line 150 in c336438
QLMarkdown/Resources/default.css
Line 160 in c336438
/* If the window is bigger than 902 pixels, the border will be visible. */
@media (min-width: 902px) {
article {
border-radius: 8px;
border-width: 1px;
border-style: solid;
border-color: var(--body-border-color);
}
}
article {
margin: auto;
max-width: 902px;
font-size: inherit;
line-height: 1.5;
word-wrap: break-word;
padding: 32px;
}
Menu related to CSS file
Yeah, I see why it is not stretched to the window size, but for some reason the default window is just bigger only for QLMarkdown. For built-in quick-look plugins, QLStephen and Syntax Highlights windows are reasonably smaller. Isn't it something that can be configured within the plugin itself?
No, there is no api to customize the Quick Look window size.
@olshevski You can downgrade to version 1.0.3 or lower, and that makes the quicklook window size more manageable for me on Monterey. The window is not going to take up entire screen, but you'll have to go backward in term of features.
Using version 1.0.3 is not recommended. Apple never fixed some bugs related to the old API. With the release 1.0.9 now you can choose a custom Quick Look window size.
Latest 1.0.9 update fixed the issue of having large quicklook windows for me. The best part is he/she made it possible for us to set the default window size.
Thanks. It looks much better now with the ability to set custom size.
Thanks