Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the content is too much, the overflow Y also dragging the content down! - IN MOBILE VIEW #2

Open
faiz-9 opened this issue Sep 3, 2024 · 0 comments

Comments

@faiz-9
Copy link

faiz-9 commented Sep 3, 2024

Trying to stick the drawer to bottom, and when scrolling from bottom to top, the drawer is getting dragged and eventually is closing:-

Style i am using:-
const modal = css`
position: absolute;

background-color: white;
width: 100%;

min-height: calc(100% - 20px);
margin: 0 -10px;
top: 10px;

z-index: 99999;
border-radius: 20px;

@media screen and (max-width: 768px) {

min-height: 60%;
height: 60%;
top: 40% !important;
margin: unset;
overflow-y: scroll;
border-radius: 20px 20px 0 0;

}
`;

const Sidebar = (width) => css`
${modal} top: 10;
max-width: ${width || 450}px; // Use the width prop or default to 450px

left: 0;
z-index: 99999;
`;

image

@faiz-9 faiz-9 changed the title When the content is too much, the overflow Y also dragging the content down! When the content is too much, the overflow Y also dragging the content down! - IN MOBILE VIEW Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant