!LtIECwsjkkjinzHTTB:matrix.org

Support/Help

945 Members
8 Servers

Load older messages


SenderMessageTime
12 Jan 2024
@_discord_326088262118670337:t2bot.iokirillsemyonkinimage.png
Download image.png
21:26:29
@_discord_326088262118670337:t2bot.iokirillsemyonkinimage.png
Download image.png
21:26:30
@_discord_326088262118670337:t2bot.iokirillsemyonkin im not sure if i block any events, but i have pointer-events: initial; when its open actually, and i have this small thing to do the click-to-close 21:26:31
@_discord_326088262118670337:t2bot.iokirillsemyonkin * im not sure if i block any events, but i have pointer-events: initial; when its open actually, and i have this small thing to do the click-outsided-to-close 21:26:33
@_discord_326088262118670337:t2bot.iokirillsemyonkin * im not sure if i block any events, but i have pointer-events: initial; when its open actually, and i have this small thing to do the click-outside-to-close 21:26:36
@_discord_326088262118670337:t2bot.iokirillsemyonkinimage.png
Download image.png
21:27:16
@_discord_326088262118670337:t2bot.iokirillsemyonkinimage.png
Download image.png
21:27:17
@_discord_326088262118670337:t2bot.iokirillsemyonkin and, well, this to be sure that it doesnt close when i click inside window 21:27:17
@_discord_326088262118670337:t2bot.iokirillsemyonkin also ignore slightly weird html! syntax, its yew-alt-html 21:27:28
@_discord_326088262118670337:t2bot.iokirillsemyonkin kek 21:27:29
@_discord_326088262118670337:t2bot.iokirillsemyonkin the use_style! is #stylist 21:27:38
@_discord_326088262118670337:t2bot.iokirillsemyonkin * the use_style! is #stylist, you dont have to use it, but i recommend it since it makes me not run to a .css 21:27:56
@_discord_326088262118670337:t2bot.iokirillsemyonkin * the use_style! is #stylist, you dont have to use it, but i recommend it since it makes me not run to a .css and make its very close to the component itself 21:28:05
@_discord_326088262118670337:t2bot.iokirillsemyonkin * the use_style! is #stylist, you dont have to use it, but i recommend it since it makes me not run to a .css and make its very close to the component itself, many people praise tailwind for it for example 21:28:15
@_discord_1191787143169851574:t2bot.iodementeddddd i see, i prefer to separate styling from the code tho but lemme see 21:34:29
@_discord_1191787143169851574:t2bot.iodementeddddd oh yea 21:34:38
@_discord_1191787143169851574:t2bot.iodementeddddd initial does fix it 21:34:40
@_discord_1191787143169851574:t2bot.iodementeddddd hovering and clicking 21:34:44
@_discord_1191787143169851574:t2bot.iodementeddddd now just scrolling 21:34:49
@_discord_1191787143169851574:t2bot.iodementeddddd i think id have to put overflow: hidden on body 21:35:15
@_discord_326088262118670337:t2bot.iokirillsemyonkin but you might want to do it only when modal is open 21:35:32
@_discord_1191787143169851574:t2bot.iodementeddddd well yes 21:35:39
@_discord_1191787143169851574:t2bot.iodementeddddd how do i do that from that function 21:35:42
@_discord_326088262118670337:t2bot.iokirillsemyonkin no clue actually, it would be either using web_sys to set style on body(), or using Global from #stylist 21:36:20
@_discord_1191787143169851574:t2bot.iodementeddddd i have a callback of that button click in my App 21:36:58
@_discord_1191787143169851574:t2bot.iodementeddddd i could set a variable from within there 21:37:06
@_discord_1191787143169851574:t2bot.iodementeddddd but 21:37:07
@_discord_1191787143169851574:t2bot.iodementeddddd that would be on buy click, not when a modal is open 21:37:16
@_discord_1191787143169851574:t2bot.iodementeddddd could i pass a reference to the modal to the callback 21:37:46
@_discord_1191787143169851574:t2bot.iodementeddddd would that be a good idea 21:37:51

Show newer messages


Back to Room ListRoom Version: 6