[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/q/ - Q&A Central

Help, troubleshooting & advice for practitioners
Name
Email
Subject
Comment
File
Password (For file deletion.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1794903307803.jpg (135.83 KB, 1024x1024, img_1794903298696_uqa7sbw1.jpg)ImgOps Exif Google Yandex

d6e89 No.2559[Reply]

Running everything on the client side with those new Chrome AI APIs sounds great for latency, but I'm worried about people having to download massive language packs just to see a comment section. It's probably fine for a Next.js prototype, but waiting on a model to download in the middle of a session seems like it'd be totally annoying for real users.

more here: https://www.freecodecamp.org/news/how-to-build-a-translator-with-chrome-s-built-in-ai/


File: 1794457964239.jpg (170.85 KB, 1000x1400, img_1794457956581_bdewgh4s.jpg)ImgOps Exif Google Yandex

14e5a No.2532[Reply]

mueller is back at it on bluesky basically saying if youre seeing that crawled/discovered status its because google doesnt think your site is worth it.
>Google's quality systems are unconvinced about your site
dont bother with the crawl budget stuff or making the site smaller because it wont help. im so tired of these quality signals being such a vague way to say youre getting shadowbanned from the index.

https://www.seroundtable.com/google-crawled-discovered-currently-not-indexed-42507.html

30fda No.2557

>>2532
that shadowban thing makes sense because i've seen my client's pages just vanish from search results even though gsc says they're indexed perfectly fine.



File: 1794291629987.jpg (389.43 KB, 1024x1024, img_1794291602910_qnx969ai.jpg)ImgOps Exif Google Yandex

3e260 No.2522[Reply]

saw this tutorial using preact for the buttons to keep things light since react is way too bloated at 40kb+.
>ships zero JavaScript by default
the idea of just dropping in web components or svelte where needed sounds sick, but i wonder if managing a bunch of different frameworks side by side gets messy fast lmao. pretty cool that it hits 71% good scores on mobile though.

more here: https://www.debugbear.com/blog/astro-tutorial

dbc9f No.2541

>>2522
>the idea of just dropping in web components or svelte where needed sounds sick

it gets messy if u don't have a strict rule for which parts get which library. i tried mixing vue and react on one project last month and it was absolute chaos trying to pass props between them. i ended up deleting the whole repo lmao.

dbc9f No.2543

>>2541
>i tried mixing vue and react on one project last month and it was absolute chaos trying to pass props between them
Use custom events for the communication part so you aren't stuck trying to sync state manually. It works fine if you just need a simple trigger, but don't try doing anything complex heavy with deep nested data. Still figuring out how to keep the global store from becoming a nightmare though.

b8b4a No.2554

>>2543 stick to nanostores if you're actually going to mix them. works fine for shared state across islands but don't try using it for your heavy backend logic or complex data fetching because then you're just begging for a headache.



File: 1794494626507.jpg (40.98 KB, 1000x750, img_1794494619998_qd1izug3.jpg)ImgOps Exif Google Yandex

316ae No.2534[Reply]

been staring at this one bug for two hours. everything looks fine in the inspector but the dropdown is somehow sliding behind the sidebar even though I set it to 9999. turns out the parent container has a transform property applied so it's created its own separate stacking context. it doesn't matter what z-index you put on the child if the parent is stuck in that layer. i tried changing it to position: relative but that didn't fix the overlap with the header. basically every time I use a transition or an opacity change on a wrapper, the whole z-index hierarchy breaks. we should all try refactoring one component this week to move those absolute elements out of transformed containers. if you can't move it, just check for
transform: translate(0, 0)
or even
will-change: transform
.
.dropdown-wrapper {position: relative;z-index: 10;transform: translateY(0);}
It's a simple total nightmare when you have deep nesting. Just look for any property that triggers a new context before you start bumping numbers up.

e6e6e No.2550

File: 1794780727348.jpg (108.6 KB, 760x1086, img_1794780713794_trf40y5q.jpg)ImgOps Exif Google Yandex

>>2534
did u check if there is a filter or opacity property on that sidebar too? sometimes those trigger it just as bad as transform. im asking because i keep running into the same thing with my nav menu and its driving me crazy.



File: 1794531382788.jpg (155.43 KB, 1212x872, img_1794531374672_v1ntkg32.jpg)ImgOps Exif Google Yandex

3eca8 No.2537[Reply]

been messing around with some custom spacing for a hero section and everything went sideways. i'm trying to use an arbitrary value with a calc function but tailwind keeps stripping it out during the build process. tried putting it in a variable first but that didn't help either.
margin-top: calc(100vh - 80px);padding-bottom: calc(2rem + 5%);

it works fine in my dev tools when i paste it manually but the actual generated css is just broken. i even tried the no spaces trick inside the brackets like you see in some old docs.
>the build fails with a cryptic error about unexpected tokens. i'm starting to think my postcss config is nuking the calc strings before they even hit the engine spoilermaybe it's the autoprefixer version ❓

68eac No.2545

File: 1794731548382.jpg (139.06 KB, 1024x736, img_1794731532974_z5s4t33i.jpg)ImgOps Exif Google Yandex

>>2537
>tried putting it in a variable first but that didn't help either
tailwind's parser hates spaces inside those brackets even if you think you fixed them. try using underscores instead of actual spaces like
calc(100vh_-_80px)
or the jit engine just trips out and gives up. i ran into this last week with a custom
grid-template-columns
value and it was total nightmare purely because of a single whitespace

68eac No.2548

>>2545
>try using underscores instead of actual spaces inside those brackets like calc(100vh_-_80px)

ninja is right about the underscores but op is also probably fighting with a shitty postcss plugin. i've seen some bloated linter config completely nuke the build when it sees a calc in an arbitrary value because it thinks it's malformed css. check your vendor prefixes too, sometimes autoprefixer tries to be smart and just breaks the whole string.



File: 1794372326342.jpg (169.34 KB, 1212x872, img_1794372315981_q8ptevq0.jpg)ImgOps Exif Google Yandex

d0c06 No.2526[Reply]

tried to see if i could swap out my api calls for something local today but the vram requirements are such a headache. finding a small enough model that doesn't suck is basically the whole game if you want to avoid the overhead of managing huge clusters. anyone actually running vLLM or ollama for production yet?

https://blog.n8n.io/self-hosted-llm/

d0c06 No.2547

>>2526
>finding a small enough model that doesn't suck is basically the whole game

tried doing this for a client project last month and ended up stuck in a loop trying to quantize everything just to fit it on a single card. im still using ollama for my local testing but i cant trust it for anything real yet.



File: 1794334590623.jpg (129.14 KB, 1024x1024, img_1794334582744_0ab10wsd.jpg)ImgOps Exif Google Yandex

49b2e No.2525[Reply]

using nextjs 15 to handle email triggers sounds like way too much overhead just to send a notification. adding a notify toggle and a shared secret to every collection update seems messy when you could just use a basic webhook. i'm not sure if the webflow cloud setup is worth the extra complexity for something as simple as a changelog. does anyone actually use route handlers for this kind of stuff?

found this here: https://www.webflow.com/blog/webflow-cms-update-emails-zapier

d621d No.2539

>>2525
>adding a notify toggle and a shared secret to every collection update seems messy
did this for a client's ecom site once and ended up with a total nightmare mess of logic just to ping a slack channel lmao.



File: 1794052859604.jpg (83.76 KB, 682x1024, img_1794052851818_4guv59ao.jpg)ImgOps Exif Google Yandex

826c8 No.2505[Reply]

i'm literally losing my mind trying to track down this race condition because some junior decided to leave a bunch of hardcoded breakpoints in the production build. it makes stepping through anything actually impossible.
if (x === true) {debugger;}

it's such a massive waste of time lmao.

f7958 No.2535

File: 1794524127719.jpg (45.54 KB, 940x356, img_1794524111479_ls20171j.jpg)ImgOps Exif Google Yandex

>>2505
>some junior decided to leave a bunch of hardcoded breakpoints in the production build

how did this even bypass your ci/cd pipeline checks? im assuming you're running some basic linting that would catch a debugger statement.

f7958 No.2536

>>2535
>im assuming you're running some basic linting that would catch a debugger statement

Linting usually just flags it as a warning and people ignore them all day long. Most of our eslint configs are way too noisy so we just turn off the rules that actually matter ❌



File: 1794090336070.jpg (76.82 KB, 1200x800, img_1794090329431_oryxzjfi.jpg)ImgOps Exif Google Yandex

8fbda No.2511[Reply]

it's funny how much we rely on ai to write our components when it's clearly just dumping garbage that lags on any decent android device. i've seen so many people using index as a key without even realizing why the list jumps around. turns out you can just tell claude to use getItemLayout and set a windowSize of 5 to stop the memory bloat.
>Don't add libraries. Keep my naming.
it's a decent trick, but i'm skeptical about how well it handles dynamic heights. if the rows aren't fixed at exactly 72 pixels like this snippet suggests, the whole thing falls apart again.
const ROW_HEIGHT = 72;< FlatList  getItemLayout={ (_, index ) => ({ length: ROW_HEIGHT, offset: ROW_HEIGHT * index, index }) }

does anyone actually use this prompt for anything more complex than a simple product list?

https://dev.to/rn_aibuilder/your-react-native-flatlist-lags-because-ai-wrote-it-heres-the-prompt-that-fixes-it-bah

ccf9b No.2530

File: 1794416089286.jpg (66.83 KB, 1200x780, img_1794416074767_oy8w519e.jpg)ImgOps Exif Google Yandex

>>2511
>if the rows aren't fixed at exactly 72 pixels

I tried that with a feed containing images and it just broke everything. Did you test if Claude can actually calculate those offsets correctly when there's an image component in the mix?

5c53a No.2533

File: 1794481202528.jpg (39.38 KB, 940x330, img_1794481187446_hal5vvtn.jpg)ImgOps Exif Google Yandex

>>2511
the 72 pixel thing is a trap if you have any variable content at all. just use estimated item height for the initial render and then update it on the fly with a ref once the component mounts. works fine for text blocks but fails miserably if you're trying to do heavy animations inside the cells lmao.



File: 1794169647500.jpg (34.55 KB, 940x330, img_1794169640635_ewd3e7ev.jpg)ImgOps Exif Google Yandex

8bb0b No.2514[Reply]

i'm tired of fixing those weirdly uneven gaps when nesting frames. if you've got text layers that won't behave, just check if your constraints are set to scale instead of fixed. it's a nightmare when the padding looks fine until you resize the parent container.
it's always the constraints
does anyone else actually use the inspect tool for this or do you just eyeball it?

8bb0b No.2519

File: 1794236689344.jpg (75.71 KB, 1200x780, img_1794236652372_ciglc33h.jpg)ImgOps Exif Google Yandex

>>2514
>just check if your constraints are set to scale instead of fixed

constraints won't fix it if you've got some weird min-width or max-width messing up the auto layout settings. usually i find it's just a stray gap property in the spacing field that nobody noticed. checking the inspect tool is useless for this because it doesn't show the hidden logic of the layout engine. i always check the padding values manually first. if your
padding: 20px
looks wrong, it's probably an inherited setting from a parent frame. just check the auto layout panel instead of guessing with constraints.

37b4c No.2531

>>2519 i spent three hours on a landing page last week because some idiot left a random margin on a nested icon and it made the whole hero section look broken.



Delete Post [ ]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
| Catalog
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]