Skip to content

Commit

Permalink
Merge pull request #80 from Goldenrash-lab/feature/stats-bug-fixes
Browse files Browse the repository at this point in the history
fixed styles mob and tablet
  • Loading branch information
Goldenrash-lab authored Jan 13, 2024
2 parents 9735316 + 4fa51be commit 2e3686b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
17 changes: 11 additions & 6 deletions src/components/Chart/Chart.styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ export const StyledTitle = styled.h2`
font-weight: 400;
line-height: normal;
@media only screen and (min-width: 767px) {
@media only screen and (min-width: 768px) and (max-width: 1279px) {
margin-left: 32px;
width: 336px;
}
@media only screen and (max-width: 480px) {
@media only screen and (max-width: 767px) {
width: 280px;
margin-left: 20px;
}
`;

Expand All @@ -29,14 +30,15 @@ export const StyledContainer = styled.div`
width: 715px;
margin-left: 69px;
@media only screen and (min-width: 767px) {
@media only screen and (min-width: 768px) and (max-width: 1279px) {
width: 336px;
margin-left: 32px;
margin-left: 0;
}
@media only screen and (max-width: 480px) {
@media only screen and (max-width: 767px) {
flex-direction: column;
width: 280px;
margin-left: 20px;
}
`;

Expand All @@ -49,7 +51,10 @@ export const StyledChartContainer = styled.div`
width: ${props => `${props.$doughnutSize}px`};
height: ${props => `${props.$doughnutSize}px`};
@media only screen and (max-width: 480px) {
@media only screen and (min-width: 768px) {
}
@media only screen and (max-width: 767px) {
margin-bottom: 32px;
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ export const StyledContainer = styled.div`
margin-bottom: 20px;
@media only screen and (min-width: 768px) {
width: 336px;
gap: 16px;
}
@media only screen and (max-width: 480px) {
@media only screen and (max-width: 767px) {
width: 280px;
height: 120px;
flex-direction: column;
margin-bottom: 20px;
gap: 20px;
}
`;

Expand All @@ -34,7 +37,7 @@ export const StyledSelect = styled.select`
width: 160px;
}
@media only screen and (max-width: 480px) {
@media only screen and (max-width: 767px) {
width: 280px;
}
`;
4 changes: 2 additions & 2 deletions src/components/StatisticsTable/StatisticsTable.styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const StyledTable = styled.div`
width: 336px;
}
@media only screen and (max-width: 480px) {
@media only screen and (max-width: 767px) {
width: 280px;
}
`;
Expand All @@ -31,7 +31,7 @@ export const StyledTitleContainer = styled.h3`
width: 336px;
}
@media only screen and (max-width: 480px) {
@media only screen and (max-width: 767px) {
width: 280px;
}
`;
Expand Down

0 comments on commit 2e3686b

Please sign in to comment.