From ff0a5659c7ab208dbab446452da47edfcbba0190 Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Fri, 27 Mar 2020 00:34:58 +0300 Subject: [PATCH] Minor fixes --- .../objects-side-bar/object-item.tsx | 16 ++++++++++------ .../standard-workspace/styles.scss | 18 ++++++++++++------ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/object-item.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/object-item.tsx index 3be155aa..067ba014 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/object-item.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/objects-side-bar/object-item.tsx @@ -368,9 +368,11 @@ function ItemButtonsComponent(props: ItemButtonsComponentProps): JSX.Element { { shapeType !== ShapeType.POINTS && ( - { pinned - ? - : } + + { pinned + ? + : } + ) } @@ -426,9 +428,11 @@ function ItemButtonsComponent(props: ItemButtonsComponentProps): JSX.Element { { shapeType !== ShapeType.POINTS && ( - { pinned - ? - : } + + { pinned + ? + : } + ) } diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/styles.scss b/cvat-ui/src/components/annotation-page/standard-workspace/styles.scss index e731a27f..96c10588 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/styles.scss +++ b/cvat-ui/src/components/annotation-page/standard-workspace/styles.scss @@ -102,13 +102,19 @@ > div:nth-child(3) > div > div { width: 100%; } - div:last-child > div > button { - width: 100%; - &:nth-child(1) { - border-radius: 3px 0px 0px 3px; + > div:last-child { + span { + width: 100%; } - &:nth-child(2) { - border-radius: 0px 3px 3px 0px; + + button { + width: 100%; + &:nth-child(1) { + border-radius: 3px 0px 0px 3px; + } + &:nth-child(2) { + border-radius: 0px 3px 3px 0px; + } } } }