[Glitch] Change window resize handler to switch to/from mobile layout as soon as needed
[Glitch] Change window resize handler to switch to/from mobile layout as soon as needed

Port bd4099d976b52f7ec00e00b23cfe6e2766ff1e4d to glitch-soc

Signed-off-by: Thibaut Girka <428c7871dd6adbdc20a11fdac0dfe6a015f06403@sitedethib.com>

glitch-soc/mastodon,im-in-space/mastodon,im-in-space/mastodon,Kirishima21/mastodon,glitch-soc/mastodon,Kirishima21/mastodon,glitch-soc/mastodon,glitch-soc/mastodon,Kirishima21/mastodon,im-in-space/mastodon,im-in-space/mastodon,Kirishima21/mastodon