Skip to content

Commit abbf085

Browse files
committed
display border for groups
1 parent 7908c32 commit abbf085

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

UI/web-app/src/components/HRQuerySource/HRQuerySource.base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ const checkType = (value: string, type: string | undefined): string => {
15291529
<ActionButton iconProps={{ iconName: 'ChevronDown' }} onClick={() => onGroupDownClick(index)} style={{ marginBottom: '-15px'}} />
15301530
</div>)}
15311531
<DetailsList
1532-
styles={{ root: classNames.detailsList }}
1532+
styles={{ root: groups.length > 1 && items.length > 1 ? classNames.detailsListWithBorder : classNames.detailsList }}
15331533
items={items}
15341534
columns={columns}
15351535
onRenderItemColumn={(item, index, column) => onRenderItemColumn(items, item, index, column)}

UI/web-app/src/components/HRQuerySource/HRQuerySource.styles.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ export const getStyles = (props: HRQuerySourceStyleProps): HRQuerySourceStyles =
4545
border: 'none'
4646
},
4747
detailsList: {
48-
minWidth: 1500
48+
minWidth: 1200
49+
},
50+
detailsListWithBorder: {
51+
minWidth: 1200,
52+
borderStyle: 'solid',
53+
borderRadius: 15,
54+
borderColor: theme.palette.themeLighter,
55+
marginLeft: 50
4956
},
5057
dropdownTitle: {
5158
borderRadius: 4,

UI/web-app/src/components/HRQuerySource/HRQuerySource.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { HRSourcePartSource } from '../../models/HRSourcePart';
88
export type HRQuerySourceStyles = {
99
root: IStyle;
1010
detailsList: IStyle;
11+
detailsListWithBorder: IStyle;
1112
textFieldGroup: IStyle;
1213
textField: IStyle;
1314
spinButton: IStyle;

0 commit comments

Comments
 (0)