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

fix: prevent scrolling on user modal (WPB-4472) #15853

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

V-Gira
Copy link
Contributor

@V-Gira V-Gira commented Sep 19, 2023

TaskWPB-4472 [Web] Remove unnecessary scrolling from connection request

Description

Prevents unwanted scrolling on the user modal

Screenshots/Screencast (for UI changes)

Before:
image

After:
Screenshot from 2023-09-19 16-20-30

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

@@ -50,11 +50,16 @@ export const userModalStyle = css`
}

.modal__body {
padding: 16px;
padding: 0 16px;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the vertical padding brings us closer to the design specs


.classified-bar {
margin-top: 12px;
width: calc(100% + 32px);
}
}
`;

export const userModalWrapperStyle: CSSObject = {
maxHeight: '90vh',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an other option would be fit-content, 90vh allows makes it more obvious the component is a modal on smaller windows
image

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #15853 (d5b87c5) into dev (7728072) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev   #15853   +/-   ##
=======================================
  Coverage   44.52%   44.52%           
=======================================
  Files         673      673           
  Lines       22727    22728    +1     
  Branches     5169     5169           
=======================================
+ Hits        10119    10120    +1     
  Misses      11317    11317           
  Partials     1291     1291           

Copy link
Contributor

@atomrc atomrc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

@V-Gira V-Gira merged commit cf88d37 into dev Sep 19, 2023
17 checks passed
@V-Gira V-Gira deleted the virgile/user-modal-max-height branch September 19, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants