Sticky preview does not work on portrait images
This commit is contained in:
parent
da5d527ea2
commit
74030f725b
@ -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;
|
||||
}
|
||||
|
@ -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 =\
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user