UI is quite hard to debug idk what's causing this overflow

here i'm hovering over body & still looks that i's not overflown by any element
No description
No description
31 Replies
Dev_HK
Dev_HKOP2mo ago
so it seems that the problem is caused by the menu
ἔρως
ἔρως2mo ago
* { outline: 1px solid rebeccapurple; } thats how you find the overflow
Dev_HK
Dev_HKOP2mo ago
exactly this
.main-header-content .menu-main-navigation-container{
position: absolute;
top: -1rem;
min-height: 100vh;
width: 100%;
transform: translateX(100vw);
transition: transform 750ms ease-in-out;
background-color:#00000096;
}
.main-header-content .menu-main-navigation-container{
position: absolute;
top: -1rem;
min-height: 100vh;
width: 100%;
transform: translateX(100vw);
transition: transform 750ms ease-in-out;
background-color:#00000096;
}
ἔρως
ἔρως2mo ago
wtf? why are you translating the menu?
Dev_HK
Dev_HKOP2mo ago
wdym it's on mobile, transitions are lightweight on css computation not like transitioning the absolute
ἔρως
ἔρως2mo ago
you do know that translating just moves the element visually, but the space is still there, right? oh, wait, that is the content
Dev_HK
Dev_HKOP2mo ago
it only breaks on an interval from 470px width till 350px
ἔρως
ἔρως2mo ago
that makes sense: you're trying to implement a drawer
Dev_HK
Dev_HKOP2mo ago
yes
ἔρως
ἔρως2mo ago
have you tried what i said?
Dev_HK
Dev_HKOP2mo ago
the outline sure
ἔρως
ἔρως2mo ago
can you show it then?
Dev_HK
Dev_HKOP2mo ago
No description
Dev_HK
Dev_HKOP2mo ago
i mean you can't see much lemme show you
Dev_HK
Dev_HKOP2mo ago
from here
No description
Dev_HK
Dev_HKOP2mo ago
till here
No description
Dev_HK
Dev_HKOP2mo ago
then it resets
Dev_HK
Dev_HKOP2mo ago
No description
ἔρως
ἔρως2mo ago
try ctrl+shift+p and then type "ful" and select "full page screenshot"
Dev_HK
Dev_HKOP2mo ago
it doesn't show in the pdf
No description
Dev_HK
Dev_HKOP2mo ago
No description
ἔρως
ἔρως2mo ago
you have to do it in the debugging tools' window
Dev_HK
Dev_HKOP2mo ago
No description
ἔρως
ἔρως2mo ago
i dont see anything overflowing delete stuff and see how it behaves
Dev_HK
Dev_HKOP2mo ago
i'll do the following; since it's not the menu that's causing this issue, i display:none & visibility collapse to not compute it in the dom
ἔρως
ἔρως2mo ago
i was suggesting you to pick elements from the element inspector and just delete some until the overflow is gone
Dev_HK
Dev_HKOP2mo ago
i see, i'll start with images since i'm using big ones & just reapply width to them
ἔρως
ἔρως2mo ago
nah, just press delete on them, in the element inspector its faster
Dev_HK
Dev_HKOP2mo ago
i see it's the footer that son of a b
ἔρως
ἔρως2mo ago
🤣 now you know what to fix
Dev_HK
Dev_HKOP2mo ago
thank you

Did you find this page helpful?