jerimiah-smiggins / smiggins

a social media platform that i made so that means its cool
https://trinkey.pythonanywhere.com
GNU General Public License v3.0
7 stars 5 forks source link

custom "Unsaved Changes" modal #189

Open 4kh00 opened 3 months ago

4kh00 commented 3 months ago

The modal when I have unsaved changes in Settings is just the default version. It just looks slightly visually jarring. I would label this as an enhancement, priority low, and I have no clue about the difficulty. This site looks awesome - thanks for making it.

trinkey commented 3 months ago

i can see that although modals are kinda difficult to make properly. i will definitely keep this in mind

trinkey commented 3 months ago

doing this however will pave the way to add more custom modals throughout the site

trinkey commented 3 months ago

the only problem is that i'm pretty sure the only way to prevent someone from leaving the site is using the builtin popup, because if you could do anything then sites could just eat the request and not close. it could be possible if all the external links were replaced with buttons that trigger the unsaved thing before redirecting although that's too much effort for it to be worth it