From d6214b578921df9595d64bcfd12f57a6df241626 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Tue, 9 Jan 2024 16:59:38 +0100 Subject: [PATCH] fix: Small style fixes (#1063) --- packages/core/src/components/common/field/Hint.css | 2 +- packages/core/src/widgets/object/ObjectControl.css | 3 ++- packages/core/src/widgets/relation/RelationControl.css | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/core/src/components/common/field/Hint.css b/packages/core/src/components/common/field/Hint.css index 7ab12fbb..74d8e835 100644 --- a/packages/core/src/components/common/field/Hint.css +++ b/packages/core/src/components/common/field/Hint.css @@ -4,7 +4,7 @@ &:not(.CMS_Hint_inline) { @apply px-3 - pt-1; + py-1; } } diff --git a/packages/core/src/widgets/object/ObjectControl.css b/packages/core/src/widgets/object/ObjectControl.css index a181099a..e17fdbb7 100644 --- a/packages/core/src/widgets/object/ObjectControl.css +++ b/packages/core/src/widgets/object/ObjectControl.css @@ -54,7 +54,7 @@ } &.CMS_WidgetObject_open { - & .CMS_WidgetObject_expand-icon { + & > .CMS_WidgetObject_expand .CMS_WidgetObject_expand-icon { @apply rotate-90 transform; } @@ -65,6 +65,7 @@ @apply flex w-full justify-between + items-center pl-2 pr-3 py-2 diff --git a/packages/core/src/widgets/relation/RelationControl.css b/packages/core/src/widgets/relation/RelationControl.css index fd0788a1..836372ba 100644 --- a/packages/core/src/widgets/relation/RelationControl.css +++ b/packages/core/src/widgets/relation/RelationControl.css @@ -3,11 +3,14 @@ .CMS_WidgetRelation_values { @apply flex - flex-wrap gap-2 - p-2 pr-0 min-w-0; + + .CMS_Field_wrapper & { + @apply flex-wrap + p-2; + } } .CMS_WidgetRelation_loading {