-
Notifications
You must be signed in to change notification settings - Fork 14
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
#3899 - Small Screen Responsiveness for Modal - Student #4227
#3899 - Small Screen Responsiveness for Modal - Student #4227
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice way to achieve the conditional modal view ❤️
Would the below not achieve the same?
Please disregard the 500 although it produced a nice result during my tests also.
const mediaQuerySmallToLarge = window.matchMedia("(max-width: 500px)");
function handleScreenChangeSmallToLarge(e: MediaQueryList) {
console.log(e);
showFullScreen.value = e.matches;
}
mediaQuerySmallToLarge.addEventListener("change", () =>
handleScreenChangeSmallToLarge(mediaQuerySmallToLarge),
);
handleScreenChangeSmallToLarge(mediaQuerySmallToLarge);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that (max-width: 500px), (max-height: 300px)
can also be used to check with or height. Doing this we may need to add/remove the with="auto"
also, so, when the modal expanded is used the with="auto"
probably need to be removed. Not a blocker since it may be not part of the ticket.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, please take a look at the comments.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, as the result matches the AC. Good job 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
As a part of this PR, the following were completed:
min-width
dialog property from the Base Modal Dialog since it wasn't getting used anywhere in the codebase. Having it was causing the issue i.e. not allowing the dialog to beflex
when the screen size was reduced.Issue:
TODO: remove mx-auto in stable version of vuetify to center modelDialog
from the Base Modal DialogDemo video attached:
2025-01-14.14-37-10.mp4