From 11c9e6e74450270e37b99c2ee7cf49f40cdad0e9 Mon Sep 17 00:00:00 2001 From: Nikita Zolotykh Date: Wed, 29 Mar 2023 17:58:22 +0300 Subject: [PATCH] feat: update row note position --- src/lib/kit/components/Layouts/Row/Row.scss | 40 +++++++++++---------- src/lib/kit/components/Layouts/Row/Row.tsx | 19 +++++----- 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/src/lib/kit/components/Layouts/Row/Row.scss b/src/lib/kit/components/Layouts/Row/Row.scss index ee73db06..79e8967d 100644 --- a/src/lib/kit/components/Layouts/Row/Row.scss +++ b/src/lib/kit/components/Layouts/Row/Row.scss @@ -17,37 +17,40 @@ &__left { width: 180px; + min-height: 28px; display: flex; - flex-direction: column; - flex-shrink: 0; + align-items: center; &-inner { - min-height: 28px; - display: flex; - } - - &::after { - content: ''; - width: 100%; - flex-shrink: 1; + display: inline; } } &__title { - align-self: center; + word-break: break-word; + margin-right: 3px; + + &_required { + &::after { + content: '*'; + color: var(--yc-color-text-danger); + } + } } &__note { - height: 28px; - display: flex; - align-items: center; - margin-left: 5px; + padding-right: 16px; - .yc-help-popover { - display: flex; + &-inner { + position: absolute; + margin-top: 1px; - & > span { + .yc-help-popover { display: flex; + + & > span { + display: flex; + } } } } @@ -74,7 +77,6 @@ } &__required-mark { - margin-left: 2px; color: var(--yc-color-text-danger); } } diff --git a/src/lib/kit/components/Layouts/Row/Row.tsx b/src/lib/kit/components/Layouts/Row/Row.tsx index d0ef83cb..e4d034af 100644 --- a/src/lib/kit/components/Layouts/Row/Row.tsx +++ b/src/lib/kit/components/Layouts/Row/Row.tsx @@ -36,17 +36,18 @@ const RowBase = ({
-
+ {spec.viewSpec.layoutTitle} - {spec.required && *} -
+ {!verboseDescription && spec.viewSpec.layoutDescription ? ( -
- -
+ + + + + ) : null}