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_HKOP4w ago
so it seems that the problem is caused by the menu
ἔρως
ἔρως4w ago
* { outline: 1px solid rebeccapurple; } thats how you find the overflow
Dev_HK
Dev_HKOP4w 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;
}
ἔρως
ἔρως4w ago
wtf? why are you translating the menu?
Dev_HK
Dev_HKOP4w ago
wdym it's on mobile, transitions are lightweight on css computation not like transitioning the absolute
ἔρως
ἔρως4w 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_HKOP4w ago
it only breaks on an interval from 470px width till 350px
ἔρως
ἔρως4w ago
that makes sense: you're trying to implement a drawer
Dev_HK
Dev_HKOP4w ago
yes
ἔρως
ἔρως4w ago
have you tried what i said?
Dev_HK
Dev_HKOP4w ago
the outline sure
ἔρως
ἔρως4w ago
can you show it then?
Dev_HK
Dev_HKOP4w ago
No description
Dev_HK
Dev_HKOP4w ago
i mean you can't see much lemme show you
Dev_HK
Dev_HKOP4w ago
from here
No description
Dev_HK
Dev_HKOP4w ago
till here
No description
Dev_HK
Dev_HKOP4w ago
then it resets
Dev_HK
Dev_HKOP4w ago
No description
ἔρως
ἔρως4w ago
try ctrl+shift+p and then type "ful" and select "full page screenshot"
Dev_HK
Dev_HKOP4w ago
it doesn't show in the pdf
No description
Dev_HK
Dev_HKOP4w ago
No description
ἔρως
ἔρως4w ago
you have to do it in the debugging tools' window
Dev_HK
Dev_HKOP4w ago
No description
ἔρως
ἔρως4w ago
i dont see anything overflowing delete stuff and see how it behaves
Dev_HK
Dev_HKOP4w 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
ἔρως
ἔρως4w ago
i was suggesting you to pick elements from the element inspector and just delete some until the overflow is gone
Dev_HK
Dev_HKOP4w ago
i see, i'll start with images since i'm using big ones & just reapply width to them
ἔρως
ἔρως4w ago
nah, just press delete on them, in the element inspector its faster
Dev_HK
Dev_HKOP4w ago
i see it's the footer that son of a b
ἔρως
ἔρως4w ago
🤣 now you know what to fix
Dev_HK
Dev_HKOP4w ago
thank you

Did you find this page helpful?