I have a floating header that dynamically changes size based on its content and what the user is viewing.
this created an issue where sometimes the header is obscuring the elements underneath it. I can get around this by setting margins to keep the elements lower than the header, but this is a problem when the header size is variable.
The floating Header is on the main page, the content it obscures is in a reusable. I don’t mind if the content goes underneath while scrolling, since that’s the point of it being a floating group.
the issue is that some of the information is obscured before the user scrolls, so they cant see what’s underneath it. I could solve this by adding margins to the content, the problem is the size of the floating group changes based on options the user can turn on and off.
hopefully that makes sense, I can definitely add a video soon, thank you!
I’m not sure how to upload a video on here, here is a picture.
The targets are the floating aspect. This is fine, but if the header box gets bigger, it obscures the information, and if it gets smaller, it creates unnecessary whitespace.
If this is a single page app, you will want to use conditionals to change the amount of margin based on the page. I am not sure if you are using custom states or URL parameters to change pages, or if you just have a multi page app but this seems like the easiest way to do it.
If you are happy to share your app and a loom video, I can help you set up a conditional quickly