Sticky preview does not work on portrait images

This commit is contained in:
henryruhs 2024-09-17 19:26:39 +02:00
parent da5d527ea2
commit 74030f725b
2 changed files with 8 additions and 6 deletions

View File

@ -78,9 +78,12 @@
padding: unset;
}
:root:root:root:root .image-preview
:root:root:root:root .image-frame
{
position: sticky;
top: 0;
z-index: 100;
width: 100%;
}
:root:root:root:root .image-frame > img
{
object-fit: cover;
}

View File

@ -29,8 +29,7 @@ def render() -> None:
preview_image_options : ComponentOptions =\
{
'label': wording.get('uis.preview_image'),
'elem_classes': [ 'image-preview' ]
'label': wording.get('uis.preview_image')
}
preview_frame_slider_options : ComponentOptions =\
{