Skip to content

Commit

Permalink
Minor fix in layout when running automatic annotations (#8072)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev authored Jun 24, 2024
1 parent a53e2bf commit 2029486
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 4 additions & 0 deletions changelog.d/20240624_145717_boris.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Slightly broken layout when running attributed face detection model
(<https://github.com/cvat-ai/cvat/pull/8072>)
12 changes: 6 additions & 6 deletions cvat-ui/src/components/model-runner-modal/object-mapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ function ObjectMapperComponent(props: Props): JSX.Element {
return (
<React.Fragment key={`${leftName}:${rightName}`}>
<Row className={rowClassName} key={`${leftName}:${rightName}`}>
<Col span={10}>
<Col span={9}>
<Tag style={{ color: textColor }} color={color} key={leftName}>{leftName}</Tag>
</Col>
<Col span={10} offset={1}>
<Col span={9} offset={1}>
<Tag style={{ color: textColor }} color={color} key={rightName}>{rightName}</Tag>
</Col>
<Col span={1} offset={1}>
<Col span={2} offset={1}>
<CVATTooltip title={deleteMappingLabel}>
<DeleteOutlined
className='cvat-danger-circle-icon'
Expand All @@ -103,7 +103,7 @@ function ObjectMapperComponent(props: Props): JSX.Element {

{ (leftValue === null || rightValue === null) && !!notMappedLeft.length && (
<Row className={rowClassName}>
<Col span={10}>
<Col span={9}>
<Select
virtual
showSearch
Expand All @@ -124,7 +124,7 @@ function ObjectMapperComponent(props: Props): JSX.Element {
))}
</Select>
</Col>
<Col span={10} offset={1}>
<Col span={9} offset={1}>
<Select
virtual
showSearch
Expand All @@ -145,7 +145,7 @@ function ObjectMapperComponent(props: Props): JSX.Element {
))}
</Select>
</Col>
<Col span={1} offset={1}>
<Col span={2} offset={1}>
{ (leftValue === null && rightValue === null) ? (
<Col span={1} offset={1}>
<CVATTooltip title={infoMappingLabel}>
Expand Down
8 changes: 3 additions & 5 deletions cvat-ui/src/components/model-runner-modal/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@

&:has(.cvat-runner-label-mapper) {
max-height: $grid-unit-size * 64;
overflow-y: auto;
overflow: hidden auto;
}

> .cvat-runner-label-mapper {
margin-top: $grid-unit-size * 2;
margin-bottom: $grid-unit-size * 2;
padding-left: $grid-unit-size * 4;
padding-right: $grid-unit-size * 4;
margin-left: $grid-unit-size * 2;
}

.cvat-runner-attribute-mapper {
Expand All @@ -42,8 +41,7 @@
width: 100%;
margin-top: $grid-unit-size * 2;
margin-bottom: $grid-unit-size * 2;
padding-left: $grid-unit-size * 4;
padding-right: $grid-unit-size * 4;
margin-left: $grid-unit-size * 2;
}
}

Expand Down

0 comments on commit 2029486

Please sign in to comment.