fix url preview spacing for very narrow viewports

on wide viewports, the url preview only leaves space for a thumbnail
when such thumbnail exists.

on small phones, or in busy deck views, it always left that space

this was not very evident for simple previews (which are pretty much a
title line, a favicon, and the site name), but it became very obvious
with the note embedding in 2024.11

this patch makes the thumbnail space conditional on the existence of
the thumbnail, for narrow viewports as well (I pretty much copied the
bit of CSS from the non-narrow media query sections)
This commit is contained in:
dakkar 2025-01-02 17:37:06 +00:00
parent d6cadc98c3
commit 3aeca799a5

View file

@ -382,11 +382,14 @@ onUnmounted(() => {
position: absolute;
width: 56px;
height: 100%;
& + .body {
left: 56px;
width: calc(100% - 56px);
}
}
> .body {
left: 56px;
width: calc(100% - 56px);
padding: 4px;
> .header {