Skip to content

Commit d435f7a

Browse files
authored
Merge pull request #434 from AppQuality/UN-487-fix-header-mobile
fix(bugs-pageheader): fix responsive order of header components + clean useless css
2 parents 6d2fbf1 + 6b8c387 commit d435f7a

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

src/pages/Bugs/PageHeader/Tools/index.tsx

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,33 +25,24 @@ const StyledCounter = styled(UniqueBugsCounter)``;
2525

2626
const StyledStatus = styled(StatusPill)``;
2727

28-
const StyledMenu = styled(DotsMenu)`
29-
@media (max-width: ${({ theme }) => theme.breakpoints.lg}) {
30-
order: 2;
31-
}
32-
`;
28+
const StyledMenu = styled(DotsMenu)``;
3329

3430
const ToolsWrapper = styled.div`
3531
display: flex;
3632
align-items: center;
3733
justify-content: flex-start;
3834
flex-wrap: wrap;
39-
margin-left: auto;
35+
width: 100%;
36+
margin-top: ${({ theme }) => theme.space.md};
37+
order: 1;
4038
4139
@media (max-width: ${({ theme }) => theme.breakpoints.xxl}) {
4240
flex-wrap: nowrap;
43-
width: 100%;
44-
justify-content: flex-start;
45-
margin-left: 0;
46-
order: 3;
47-
margin-top: ${({ theme }) => theme.space.md};
4841
}
4942
5043
@media (max-width: ${({ theme }) => theme.breakpoints.lg}) {
51-
width: 100%;
5244
flex-direction: column;
5345
align-items: flex-start;
54-
order: 3;
5546
5647
${Pipe} {
5748
display: none;

src/pages/Bugs/PageHeader/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,16 @@ const FlexWrapper = styled.div`
1717
`;
1818

1919
const StyledTitle = styled(PageHeader.Title)`
20+
display: flex;
2021
width: auto;
2122
white-space: nowrap;
2223
margin-right: ${({ theme }) => theme.space.md};
2324
font-size: ${({ theme }) => theme.fontSizes.xxxl};
25+
order: 0;
2426
2527
@media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
2628
font-size: ${({ theme }) => theme.fontSizes.xxl};
2729
}
28-
29-
@media (max-width: ${({ theme }) => theme.breakpoints.lg}) {
30-
order: 1;
31-
}
3230
`;
3331

3432
const BugsPageHeader = ({ campaignId }: { campaignId: number }) => {

0 commit comments

Comments
 (0)