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

Commit

Permalink
fix: responsiveness bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vycdev committed Jul 12, 2020
1 parent 9106190 commit 5fc9e27
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
24 changes: 13 additions & 11 deletions packages/web/src/components/profilePage/profilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
ClickMe,
ChartsWrapper,
ChartName,
ChartNamesWrapper
ChartAndTitleWrapper
} from "./style";

import { GamesChart } from "./components/gamesChart";
Expand Down Expand Up @@ -397,18 +397,20 @@ export const ProfilePage = () => {
</div>
)}
</Description>
<ChartNamesWrapper>
<ChartName>Last 10 Games</ChartName>
<ChartName>All Personal Bests</ChartName>
</ChartNamesWrapper>

<ChartsWrapper>
<GamesChart
dataProp={convertUserGamesData(userGames)}
></GamesChart>
<GamesChart
dataProp={convertUserGamesData(userPbs)}
></GamesChart>
<ChartAndTitleWrapper>
<ChartName>Last 10 Games</ChartName>
<GamesChart
dataProp={convertUserGamesData(userGames)}
></GamesChart>
</ChartAndTitleWrapper>
<ChartAndTitleWrapper>
<ChartName>All Personal Bests</ChartName>
<GamesChart
dataProp={convertUserGamesData(userPbs)}
></GamesChart>
</ChartAndTitleWrapper>
</ChartsWrapper>
</InsideWrapper>
</Wrapper>
Expand Down
5 changes: 4 additions & 1 deletion packages/web/src/components/profilePage/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,14 @@ export const ChartsWrapper = styled.div`
display: inline-flex;
width: 100%;
`;
export const ChartAndTitleWrapper = styled.div`
margin: auto;
text-align: center;
`;

export const ChartName = styled.div`
font-size: 20px;
color: ${theme.text.primary};
width: 50%;
margin: auto;
text-align: center;
font-family: "Verdana";
Expand Down

0 comments on commit 5fc9e27

Please sign in to comment.