Skip to content

Commit

Permalink
WJ-35 - Fix: Horizontal scroll;
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Teixeira committed Aug 31, 2020
1 parent 50655e3 commit b2ce267
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/containers/MovieList/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const ListContainer = styled.div`

export const ListContent = styled.div`
display: inline-flex;
overflow: hidden;
margin-left: ${Size.Medium};
& > div {
Expand Down
8 changes: 5 additions & 3 deletions src/screens/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ColumnLayout } from 'components/Layout';
import Header from 'containers/Header';
import MovieList from 'containers/MovieList';
import Footer from 'containers/Footer';
import { HeaderBackground } from './styles';
import { HeaderBackground, ContentContainer } from './styles';

const Home: React.FC = () => {
const [popularList, setPopularList] = useState([] as MovieResponse[]);
Expand All @@ -21,8 +21,10 @@ const Home: React.FC = () => {
return (
<ColumnLayout>
<Header />
<MovieList theme="light" title="Populares" data={popularList} />
<MovieList theme="light" title="Lançamentos" data={nowPlayingList} />
<ContentContainer>
<MovieList theme="light" title="Populares" data={popularList} />
<MovieList theme="light" title="Lançamentos" data={nowPlayingList} />
</ContentContainer>
<Footer />
<HeaderBackground />
</ColumnLayout>
Expand Down
4 changes: 4 additions & 0 deletions src/screens/Home/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ export const HeaderBackground = styled.div`
height: 376px;
background: ${Color.Primary};
`;

export const ContentContainer = styled.div`
flex: 1;
`;

0 comments on commit b2ce267

Please sign in to comment.