I don’t know how to say that, i think my picture is more relevant…
Before Ionic 6, i’m using Popover content to build that. With Ionic 6, popover content is more complicated and modify the width and the position of popover on the screen is so hard.
I’m confusing, can i do this with modal? so it’s possible to center modal with a max-height?
Thanks for answer
What do you mean by before ionic6? Which version of the ui framework are u using?
Are you talking about making the modal not take up the entire screen? If so, you can use the
--height CSS Variable on
See ion-modal: Ionic Mobile App Custom Modal API Component
If you want to customize popover content you can do by css like below;
width: 300px !important;
top: calc(250px + var(--offset-y, 0px));
left: calc(50px + var(--offset-x, 0px));