Getting the picture inside valuedisplay widget
Hi,
I am developing a widget where Images should be displayed by using a collection widget together with a value display, So what I want to accomplish is to have multiple images to show on the mashup but without the borders that the collection widget provides and that they should be as wide as the mashup allows.
I know how to remove the border and the button underneath the value being displayed. But another problem is that even if trying to use only valuedisplay to see how the image would look, it gets very small.
I have figured out that I would need to change the background-size image property to cover as well as affecting the size of some other elements, but my bellow css, even if it seems correct, does not affect what I would want.
If you take a look at the bellow css code, what is missing?
ptcs-value-container ptcs-modal-image-pupup::part(popup-root){
height: 100vh;
width: 100vw;
}
ptcs-modal-image-pupup::part(live-art-area-image-thumbnail){
height: 100vh;
width: 100vw;
}
ptcs-modal-image-pupup::part(image){
background-size: cover;
}
ptcs-value-display::part(overflow-control){ height:100vh; } ptcs-value-display::part(value-container){ height:100vh; } ptcs-value-display::part(item-value-container){ height:100vh; width:100vw; } ptcs-value-display::part(item-value){ height:100vh; width:100vw; }
Kind Regards
Oskar Berntorp

