Skip to content

Commit 7973e59

Browse files
committed
fix(filter-container): fix alignment and heights
1 parent 9799ffa commit 7973e59

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/pages/Bugs/Content/BugPreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const DetailContainer = styled.div`
2323
top: 0;
2424
width: 100%;
2525
background-color: white;
26-
padding-bottom: ${({ theme }) => theme.space.md};
2726
max-height: calc(
28-
100vh - ${({ theme }) => theme.components.chrome.header.height}
27+
100vh - ${({ theme }) => theme.components.chrome.header.height} -
28+
${filtersHeight}px
2929
);
3030
overflow: hidden;
3131
@media (min-width: ${({ theme }) => theme.breakpoints.xl}) {

src/pages/Bugs/Content/components/BugHeader.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ export default ({
5050

5151
return (
5252
<Container>
53-
<Tag isPill={false} isRegular hue="rgba(0,0,0,0)">
53+
<Tag
54+
isPill={false}
55+
isRegular
56+
hue="rgba(0,0,0,0)"
57+
style={{ paddingTop: `${globalTheme.space.base}px` }}
58+
>
5459
{!bug.duplicated_of_id && (
5560
<Tag.Avatar>
5661
<FatherIcon

src/pages/Bugs/Content/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import styled from 'styled-components';
55
import { theme as globalTheme } from 'src/app/theme';
66
import { BugsFilters } from '../Filters';
77
import { FilterRecap } from '../Filters/FilterRecap';
8-
import { BugPreview, filtersHeight } from './BugPreview';
8+
import { BugPreview } from './BugPreview';
99
import BugsTable from './BugsTable';
1010
import BugsPageContentLoader from './ContentLoader';
1111

@@ -25,7 +25,6 @@ const LayoutWrapperFilters = styled(LayoutWrapper)`
2525
position: sticky;
2626
top: 0;
2727
z-index: 2;
28-
max-height: ${filtersHeight}px;
2928
}
3029
`;
3130

0 commit comments

Comments
 (0)