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}