-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Select Team list container should scale in width based on browser window width #14197 #5833
Conversation
Thanks @sridhar02, looks good from my end! Adding @andrewbrown00 for a UX review |
/update-branch |
@jgilliam17,actullay it was mentioned in the task to change the width of the list container to 800px, I have changed it and it is effecting the sign-in also as they are using the same styles for both the teams and the sign-in pages. |
@sridhar02 thanks for the contribution here 👍 Changes to the Item to resolve
|
Thank you @sridhar02 @andrewbrown00 found two more instance where field width was increased. Should this also be reverted? Team URL screen actually looks better with the wider field, where most of the url is visible. Create a Team Team URL screen |
Thanks @jgilliam17, yes, all non-team page instances should be reverted 🙂 |
@jgilliam17 @andrewbrown00 I have reverted the changes and made changes that will be applicable to the team container u can check it. |
Looks good @sridhar02 from my end. Thanks for quick updates 🙂 , I'll let @jgilliam17 do her review too. |
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.
Thank you @sridhar02 for a quick fix reverting login and team creation screen fields to previous width.
Tested, looks good to merge.
- Verified Team list scales in width based on browser window width.
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! Just one comment related to the overflow behavior.
@@ -336,7 +336,7 @@ export default class SelectTeam extends React.PureComponent { | |||
{headerButton} | |||
<div className='col-sm-12'> | |||
<div | |||
className={'signup-team__container'} | |||
className={'select-team__container signup-team__container'} |
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.
Thanks for isolating, I've been thinking we need a unique class to distinguish some of these screens.
sass/responsive/_mobile.scss
Outdated
|
||
.signup-team-all .infinite-scroll { | ||
overflow-y: auto; | ||
} |
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.
This selector doesn't seem to hit the element I presume that it targets.
<div class="infinite-scroll signup-team-all">
?
.signup-team-all.infinite-scroll {
overflow-y: auto;
}
digging into this further, though.. I don't know that this is even needed, as the following already kicks in on hover inside (e.g. you start to drag on mobile)
.infinite-scroll:hover {
overflow-y: scroll;
overflow-y: overlay;
}
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.
yes, I have not checked in that way, I think it working on the hover, so I deleted this class now
.signup-team-all.infinite-scroll {
overflow-y: auto;
}
…g due to infinite-scroll overflow hidden property
…h max width 800px for the team container
…r over team list.
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.
Looks good ✓
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
Thank you @sridhar02 |
Test server destroyed |
Summary
changes done for the issues mentioned in the ticket
Ticket Link
Fixes mattermost/mattermost#14197
JIRA https://mattermost.atlassian.net/browse/MM-23749
Related Pull Requests
Screenshots
overflow-y addition on the mobile view
![image](https://user-images.githubusercontent.com/44333182/86352652-be707480-bc83-11ea-9aa9-b836fa7f7385.png)
Before the change when the max-width was 400px