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

/resp/ - Responsive Design

Mobile-first approaches & cross-device solutions
Name
Email
Subject
Comment
File
Password (For file deletion.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1795724033590.jpg (127.42 KB, 1300x906, img_1795724023918_3dvehdlu.jpg)ImgOps Exif Google Yandex

2ab64 No.2447[Reply]

tried switching my whole layout system over to logical properties instead of physical ones last week. it's actually much easier when you're dealing with multi-directional layouts or anything that might hit a rtl context eventually. i used to spend way too much time manually swapping margin-left and margin-right for different locales, which was stupid a total waste of time. now i just use padding-inline and it handles the heavy lifting without me thinking about it. turns out
padding-inline: 2rem;margin-block: 1rem;
is way cleaner than the old physical mess. everything feels more consistent once you stop thinking in terms of top or left. does anyone actually still use margin-left for anything besides legacy support?

2ab64 No.2472

File: 1795998772251.jpg (87.98 KB, 620x866, img_1795998756397_5yl55xba.jpg)ImgOps Exif Google Yandex

>>2447
>i used to spend way too much time manually swapping margin-left and margin-right for different locales, which was stupid a total waste of time.

had a client freak out last month because their arabic localization broke the entire sidebar layout. i spent three hours hunting down every single
margin-left
in the css just to fix one broken menu lmao. it's such a headache compared to just using inline properties.

2ab64 No.2487

>>2472
The sidebar thing sounds like a nightmare. One thing I've learned is to check if you actually need
inline-size
instead of just swapping margin/padding. It helps a lot when you have elements that change their actual width based on the writing mode, like vertical text in certain Asian layouts. Just don't use it for fixed-width containers where the physical dimension is non-negotiable. If you're building something meant to be strictly portrait or landscape regardless of language, sticking to physical properties is safer. I usually keep a quick checklist for when a component should stay physical:
.fixed-sidebar {  width: 300px;  padding-left: 20px;}

Otherwise, logical properties are just better for everything else.



File: 1795766993141.jpg (414.38 KB, 1024x1024, img_1795766985615_6e920orn.jpg)ImgOps Exif Google Yandex

f3aad No.2448[Reply]

I was just reading about how much work goes into subscription cancellation flows since they're becoming a legal requirement in some places. It's not just a simple button anymore; you have to actually confirm auto-renewal is off and explain what access stays active. I always wonder if we're overthinking the confirmation modals for unsaved work or if we should just let people click through more aggressively.

article: https://blog.logrocket.com/ux-design/ux-exit-flow-design/

f3aad No.2486

>>2448
just let them click through. those modals are just friction for the sake of it.



File: 1796005305397.jpg (222.46 KB, 1040x1210, img_1796005296982_cqdwyjfw.jpg)ImgOps Exif Google Yandex

ef355 No.2473[Reply]

i'm tired of seeing layouts jump around when the browser chrome hides or shows on scroll. if you aren't using height: 100svh; for your main wrappers yet, you're basically just making things up as you go. it's actually annoying to watch

does anyone still bother with the old vh math hacks?

ef355 No.2482

>>2473
i gave up on those math hacks after a client's landing page kept cutting off the footer on safari mobile. it looked so broken during the demo. svh is way easier tbh.

ef355 No.2485

File: 1796222046507.jpg (200.69 KB, 1024x1333, img_1796222029040_s3nwgbf2.jpg)ImgOps Exif Google Yandex

>>2482
>it looked so broken during the demo.

i had a similar nightmare with a dashboard build last month. used those old calc hacks for the sidebar and everything just shudder jittered every time someone tapped a menu item. the client thought the whole site was glitching out on their iphone. it's embarrassing when you realize your perfect layout is basically vibrating because of the address bar. i just switched everything to svh and stopped overthinking it. why would anyone still mess around with that math?



File: 1796214506878.jpg (58.63 KB, 1000x750, img_1796214468274_0houoylx.jpg)ImgOps Exif Google Yandex

51014 No.2484[Reply]

i'm tired of seeing people manually hardcode every single font size at different breakpoints instead of just using css clamp. it's efficient a nightmare to maintain when the math is already done for you.

font-size: clamp(1rem, 2vw + 0.5rem, 3rem);

does anyone actually still write out media queries just to bump up the text size?


File: 1796177416006.jpg (24.05 KB, 1024x679, img_1796177408064_8zveqntn.jpg)ImgOps Exif Google Yandex

bbe1b No.2483[Reply]

client wants everything to scale perfectly so they keep using max-width on every wrapper. it's a nightmare when you actually have to deal with sidebars or complex layouts on tablets. im seeing way too many devs forget about the actual overflow behavior of the parent.
>everything should just shrink to fit the screen
that's how you end up with broken horizontal scrolling and weird white space gaps on certain aspect ratios. if you don't use a more granular approach with flex or grid, you're just waiting for a layout bug to hit. i've seen people try to fix it with:
.container {max-width: 100vw;overflow-x: hidden;}

it's a garbage bandaid that hides the real problem. you should be looking at the specific component constraints instead of just slapping global limits on everything.


File: 1796128055015.jpg (261.21 KB, 1572x759, img_1796128045311_nlopt5kk.jpg)ImgOps Exif Google Yandex

7cc09 No.2481[Reply]

i'm sick of seeing devs set button size by font size alone without any extra padding for thumbs. if you don't add at least 12px of hit area, people are just going to be tapping the wrong links all day.


File: 1796090909361.jpg (127.38 KB, 760x1154, img_1796090900706_5iazpvez.jpg)ImgOps Exif Google Yandex

c676f No.2478[Reply]

I've been moving away from media queries for my component libraries lately. Using @container instead of @media makes it so much easier to drop a card into a narrow sidebar without the layout breaking. It doesn't care about the whole viewport, just how much room its parent actually gives it. I usually set the container type to inline-size on the wrapper.
.card-wrapper {container-type: inline-size;}

It makes reusable components actually work the way they should in a complex grid. If you stick to media queries, you end up writing a dozen different classes for every single placement scenario.

c676f No.2480

>>2478
>It doesn't care about the whole viewport, just how much room its parent actually gives it.

setting
inline-size
on every single wrapper is going to be a performance nightmare once you have hundreds of these on a page. i'd expect to see layout shifts all over the place if the browser has to re-calculate everything based on parent dimensions instead of just checking one global media query. it's basically just deferred technical debt



File: 1795644579060.jpg (150.83 KB, 1024x1024, img_1795644569787_u8cyevs6.jpg)ImgOps Exif Google Yandex

4ff05 No.2445[Reply]

still getting those weird layout jumps when the address bar hides and shows. it's driving me crazy trying to center stuff vertically with height: 100vh when the actual viewport changes every time someone scrolls a pixel. just use dvh already so i don't have to write these shitty hacks for every single landing page.

4ff05 No.2455

File: 1795833459685.jpg (95.43 KB, 1100x720, img_1795833443894_yxiaz1ep.jpg)ImgOps Exif Google Yandex

>>2445
I've been using
svh
for my hero sections lately because it keeps everything from jumping around when that bar pops up. It feels a bit weird since the content might get cut off if you aren't careful, but at least the layout stays stable. I still haven't figured out how to handle the transition smoothly without it feeling janky awkward.

4ff05 No.2463

>>2455 I've tried usingsvh but it's a nightmare for sticky footers when you actually need that extra space at the bottom.

4ff05 No.2479

File: 1796092186829.jpg (212.97 KB, 1000x1230, img_1796092171676_kwipplrk.jpg)ImgOps Exif Google Yandex

>>2463
>I've tried usingsvh but it's a nightmare for sticky footers when you actually need that extra space at the bottom.

tried doing that on a client project last week and ended up just using
min-height: 100dvh
to avoid the overlap, but even then safari still acts like a total child sometimes.



File: 1795522143884.jpg (57.17 KB, 1000x750, img_1795522105341_fq4i9qlh.jpg)ImgOps Exif Google Yandex

af009 No.2437[Reply]

i'm tired of manually calculating every single breakpoint just to keep my font sizes from looking ridiculous on tablets. i tried using font-size: clamp(1rem, 5vw, 3rem); yesterday and it's way cleaner than the old method of jumping through hoops with media queries. does anyone actually find these fluid scales predictable when they hit weird viewport widths?

af009 No.2460

File: 1795883955222.jpg (155.2 KB, 1024x1024, img_1795883941113_495jtix3.jpg)ImgOps Exif Google Yandex

>>2437
>does anyone actually find these fluid scales predictable when they hit weird viewport widths?

I definitely run into that same issue with the math getting fuzzy on smaller tablets. The scaling feels smooth until it hits a certain width and then everything just looks too massive for the content block. I've started wrapping my clamp values in some custom CSS variables so I can tweak them globally when things break. It's way easier than hunting down every single instance of a font size in a giant stylesheet.

:root {  --fluid-text: clamp(1rem, 5vw, 3rem);}


I still use media queries for the big layout shifts though. Mixing them helps keep the typography from getting out of hand when the container gets weirdly narrow.

af009 No.2462

File: 1795906100799.jpg (225.17 KB, 1040x1210, img_1795906084701_c7nysxrd.jpg)ImgOps Exif Google Yandex

>>2460
wrapping them in variables is the only way to stay sane but even then that 5vw unit is a nightmare when you're dealing with tight containers. i usually just stick to a hard @media query for anything below 768px because clamp math breaks when your layout shifts from single column to grid. tailwind's default scale is better anyway

af009 No.2477

>>2437
>i tried using font-size: clamp(1rem, 5vw, 3rem); yesterday

Are you using a specific calc function to handle the viewport math or just raw vw? I ask because pure vw makes it hard to control the growth rate once the container gets wide.



File: 1795558870330.jpg (130.63 KB, 1024x1024, img_1795558863064_ttnshr9e.jpg)ImgOps Exif Google Yandex

b50bf No.2440[Reply]

i'm tired of seeing people use width: 100% on massive high-res assets and then wondering why the layout breaks when someone opens it on a huge ultra-wide monitor. it's not "fluid" if it just stretches into a blurry mess that makes the site look like garbage. you really should be setting a hard max-width limit so the image actually stops growing at some point.
>it scales perfectly to any screen size

that line is such a lie when you're dealing with actual photography. it doesn't scale perfectly if it ends up looking like a pixelated disaster on a desktop. use a container or just set a ceiling for the width so things stay actually usable.

does anyone here actually bother checking their hero scaling on 21:9 aspect ratios?

b50bf No.2476

>>2440
>it scales perfectly to any screen size
only if you're a bot or a liar. just use object-fit: cover with a fixed aspect ratio for the container so the image doesn't stretch like taffy, but don't bother if you need the full frame visible without cropping.



Delete Post [ ]
Previous [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 ]