Because of diferent sizes of scrollbar I'm getting a problem while using a fixed component in both mobile and desktop:
While the desktop version get correctly aligned with the components below, the mobile version doesn't. If I fix the width for the mobile the desktop will go over the component limit and it just doesn't work.
My css for it is as follow, the commented width is the one that works for the mobile. Anyone have any ideas?
.fixed-header {
position: fixed;
top: 56px;
left: 14px;
width: calc(100vw - 45px); //calc(100vw - 30px);
z-index: 2;
@include md {
position: relative;
}
}