Skip to content

Commit 44e962d

Browse files
committed
fix view padding
1 parent 83922a9 commit 44e962d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/cloud/components/Views/List/ListViewHeader.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ const ListViewHeader: AppComponent<ViewManagerContentRowProps> = ({
2121
onSelect,
2222
}) => {
2323
return (
24-
<StyledContentManagerRow className={cc(['cm__row', className])}>
24+
<StyledContentManagerRow
25+
className={cc([
26+
'cm__row',
27+
!showCheckbox && 'cm__row--no-checkbox',
28+
className,
29+
])}
30+
>
2531
{showCheckbox && (
2632
<Checkbox
2733
className={cc(['row__checkbox', checked && 'row__checkbox--checked'])}
@@ -51,6 +57,12 @@ const StyledContentManagerRow = styled.div`
5157
font-size: 13px;
5258
padding: 0 ${({ theme }) => theme.sizes.spaces.df}px;
5359
60+
&.cm__row--no-checkbox {
61+
.cm__row__label {
62+
margin-left: ${({ theme }) => theme.sizes.spaces.xl - 4}px;
63+
}
64+
}
65+
5466
.cm__row__label {
5567
color: ${({ theme }) => theme.colors.text.subtle};
5668
border-bottom-color: transparent;

src/cloud/components/Views/Table/TableView.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,13 @@ const Container = styled.div`
410410
flex: 0 0 auto;
411411
}
412412
413+
.table:not(.table--with-checkbox) {
414+
.table__header:first-child > div:first-child,
415+
.table-row > div:first-child .navigation__item {
416+
padding-left: ${({ theme }) => theme.sizes.spaces.md}px !important;
417+
}
418+
}
419+
413420
.content__manager__list__header--margin {
414421
margin-top: ${({ theme }) => theme.sizes.spaces.l}px !important;
415422
}

0 commit comments

Comments
 (0)