I’ve always been a fan of floating buttons that remain fixed in place when scrolling. I think a floating form button would be a great way to display a form button as a substitute to the Add button.
I haven’t done much with CSS but I found a sample online and played around a bit to come up with this. The position from the bottom varies a bit depending on which device I’m viewing from. Also, it hijacks every single button on the screen and overlays them on top of each other, so unless I’m missing something, I think only one button can be on the screen for this to work. I did also notice in one test that a map component or map inline list was displaying on top of the the floating form button, but if anybody has any ideas to improve the CSS, have at it.
Maybe glide could provide this as a built in feature someday.
Where are you then placing the reference in the HTML? I guess what I mean is, I’m used to creating CSS inside the <head> section or referencing the stylesheet elsewhere. So, when he has .sc-fznNvL in between the <style> tags, is he then referencing that in the HTML somewhere like this below?
<div class="sc-fznNvL">
Blah Blah Blah
</div>
Or am I missing something? Sorry for the questions, but just trying to better understand how he’s referencing this in Glide.
Here’s a link to the app: https://snowy-field-0962.glideapp.io/
The two buttons I am trying to get floating are: one for chats y the other one to share a post through the in-app chat.
I think it might be the inline list overlaying the button. If you get a total of 6 images, you might see the button under the list. You can try adding some extra components and scroll down so the button is not over (under) the list and see if that works. Or try a profile with no images, so there is an empty list.