Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Select Team list container should scale in width based on browser win…
Browse files Browse the repository at this point in the history
…dow width #14197 (#5833)

* changed the signup team container max width

* added the scroll property in mobile view currently which is overriding due to infinite-scroll overflow hidden property

* reverted signup team container width to 400px and added new class with max width 800px for the team container

* snapshot updated

* remove the unnecessary class name as overflowY is applied on the hover over team list.
  • Loading branch information
sridhar02 committed Jul 22, 2020
1 parent c38ca48 commit 7141560
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
12 changes: 6 additions & 6 deletions components/select_team/__snapshots__/select_team.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`components/select_team/SelectTeam should match snapshot 1`] = `
className="col-sm-12"
>
<div
className="signup-team__container"
className="select-team__container signup-team__container"
>
<img
alt="signup team logo"
Expand Down Expand Up @@ -127,7 +127,7 @@ exports[`components/select_team/SelectTeam should match snapshot, on error 1`] =
className="col-sm-12"
>
<div
className="signup-team__container"
className="select-team__container signup-team__container"
>
<img
alt="signup team logo"
Expand Down Expand Up @@ -217,7 +217,7 @@ exports[`components/select_team/SelectTeam should match snapshot, on loading 1`]
className="col-sm-12"
>
<div
className="signup-team__container"
className="select-team__container signup-team__container"
>
<img
alt="signup team logo"
Expand Down Expand Up @@ -298,7 +298,7 @@ exports[`components/select_team/SelectTeam should match snapshot, on no joinable
className="col-sm-12"
>
<div
className="signup-team__container"
className="select-team__container signup-team__container"
>
<img
alt="signup team logo"
Expand Down Expand Up @@ -436,7 +436,7 @@ exports[`components/select_team/SelectTeam should match snapshot, on no joinable
className="col-sm-12"
>
<div
className="signup-team__container"
className="select-team__container signup-team__container"
>
<img
alt="signup team logo"
Expand Down Expand Up @@ -530,7 +530,7 @@ exports[`components/select_team/SelectTeam should match snapshot, on no joinable
className="col-sm-12"
>
<div
className="signup-team__container"
className="select-team__container signup-team__container"
>
<img
alt="signup team logo"
Expand Down
2 changes: 1 addition & 1 deletion components/select_team/select_team.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
>
<img
alt={'signup team logo'}
Expand Down
1 change: 1 addition & 0 deletions sass/responsive/_mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,7 @@
.signup-team-all {
max-height: calc(75vh - (118px + 187px));
}

}

@media screen and (max-width: 640px) {
Expand Down
4 changes: 4 additions & 0 deletions sass/routes/_signup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ body {
}
}

.select-team__container {
max-width: 800px;
}

.signup-team-all {
@include border-radius(2px);
border: 1px solid #dddddd;
Expand Down

0 comments on commit 7141560

Please sign in to comment.