Muhct
Muhct
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Muhct on 8/17/2024 in #questions
Is there a built-in way to prevent ID duplicates using Zod?
yup I saw that discussion but no one mentions a built-in way to prevent duplicates, just workarounds that would be last resource for me
5 replies
TTCTheo's Typesafe Cult
Created by Muhct on 7/14/2024 in #questions
Using hardcoded data for comparison in unit tests with toEqual?
I see... so if you use .toMatchInlineSnapshot() you only have to provide it the hardcoded dirty/input data, and then when you run the test for the first time, it will automatically modify your test file to add the generated clean/output data... right? So at the end of the day you would still have 2 large blocks of hardcoded data
8 replies
KPCKevin Powell - Community
Created by Muhct on 7/11/2024 in #front-end
Px, em, or rem?
I see... and for media queries to define screen sizes the best unit would be px, right?
15 replies
KPCKevin Powell - Community
Created by Muhct on 7/11/2024 in #front-end
Px, em, or rem?
great resource, I'll check that out, thanks!
15 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/22/2024 in #questions
Best practices for rendering the version of your app
gotcha, thanks!
14 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/22/2024 in #questions
Best practices for rendering the version of your app
and the CI would change the value of the VERSION const without "dirtying" the commit history?
14 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/22/2024 in #questions
Best practices for rendering the version of your app
you mean I should set up a Github CI/CD pipeline? Or can Vercel handle this by its own?
14 replies
TTCTheo's Typesafe Cult
Created by Muhct on 6/29/2023 in #questions
Sizes prop in the <Image/> component
not sure what you mean, I'm only talking about the sizes prop - it doesnt have any effect in my website images with or without cache disabled, so I'm not sure what is its purpose
5 replies
KPCKevin Powell - Community
Created by Muhct on 2/8/2023 in #front-end
Automated styling testing?
Awesome, thanks! I'll check that out
4 replies
KPCKevin Powell - Community
Created by Muhct on 1/19/2023 in #front-end
Is there a way to properly check how your website looks on different devices?
Seems like the framework I'm using (NextJS) uses PostCSS right off the bat, so that's nice
54 replies
KPCKevin Powell - Community
Created by Muhct on 1/19/2023 in #front-end
Is there a way to properly check how your website looks on different devices?
Nice, that Playwright way of testing webkit emulates both desktop and mobile?
54 replies
KPCKevin Powell - Community
Created by Muhct on 1/19/2023 in #front-end
Is there a way to properly check how your website looks on different devices?
In your experience, what things or CSS properties did you notice that behave differently in different devices? For example on google chrome+firefox the text-clamp I had worked great, but didn't worked at all on a iOS device using Chrome
54 replies
KPCKevin Powell - Community
Created by Muhct on 1/19/2023 in #front-end
Is there a way to properly check how your website looks on different devices?
Yup, in my experience vw/vw is too unpredictable so I don't use it
54 replies
KPCKevin Powell - Community
Created by Muhct on 1/12/2023 in #front-end
Is chrome dev tools responsive view working correctly?
In this case if I refresh it looks the same (can horizontal scroll) - it only looks different aka correctly once I restart devtools
6 replies
KPCKevin Powell - Community
Created by Muhct on 1/10/2023 in #front-end
Removing the built-in padding-margin of SVGs
Sorry, I forgot to give an update, turns out there was actually no issue because even though when I use inspect element and hover over the <path /> I get a big skyblue square that overlaps with the other elements shown in the picture, it's not like it actually takes all that space. I added a className of "my-element" to the path, added an eventlistener to console log something when that classname is clicked, and it works correctly. As in, if I click 2px outside of the green graphic, nothing gets consolelogged
12 replies
KPCKevin Powell - Community
Created by Muhct on 1/10/2023 in #front-end
Removing the built-in padding-margin of SVGs
Oh ok, I would have to make some changes to it/make it more generic before sharing it, it will take me a bit. In the image I'm hovering over the path (everything is a big SVG)
12 replies
KPCKevin Powell - Community
Created by Muhct on 1/10/2023 in #front-end
Removing the built-in padding-margin of SVGs
I see, so it would be impossible to make it so that the green-related popup doesn't open up when you click outside of the green "Strategy" shape?
12 replies
KPCKevin Powell - Community
Created by Muhct on 1/9/2023 in #front-end
Transform translate(X, Y) differs in Mozilla & Chrome
9 replies