mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-09 23:29:43 +01:00
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:
parent
d6cadc98c3
commit
3aeca799a5
1 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue