From 404583298f424b4a0eec2c1f2d944d80a4578f5d Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 22 Mar 2024 11:36:34 +0800 Subject: [PATCH] UX: Improve layout of theme objects setting editor (#26309) --- .../common/admin/schema_field.scss | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common/admin/schema_field.scss b/app/assets/stylesheets/common/admin/schema_field.scss index ad9e2deec9a..1660c2eba24 100644 --- a/app/assets/stylesheets/common/admin/schema_field.scss +++ b/app/assets/stylesheets/common/admin/schema_field.scss @@ -2,12 +2,30 @@ margin-bottom: 1em; width: 50%; min-width: 200px; + display: grid; + grid-template-columns: 25% 1fr; + gap: 1em; + + .schema-field__label { + word-break: break-all; + } + + .schema-field__input:has(input[type="checkbox"]) { + flex-direction: row; + } .schema-field__input { + display: flex; + flex-direction: column; + align-items: flex-start; + input { width: 100%; margin-bottom: 0; - width: 100%; + } + + input[type="checkbox"] { + width: auto; } .select-kit { @@ -19,6 +37,7 @@ color: var(--primary-medium); } } + .schema-field__input-supporting-text { display: flex; flex-direction: row;