From: Nizamudeen A Date: Tue, 28 Feb 2023 06:18:16 +0000 (+0530) Subject: mgr/dashboard: minor fixes to crud form UI X-Git-Tag: v18.1.0~270^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50299%2Fhead;p=ceph.git mgr/dashboard: minor fixes to crud form UI Fixes: https://tracker.ceph.com/issues/58864 Signed-off-by: Nizamudeen A --- diff --git a/src/pybind/mgr/dashboard/controllers/_crud.py b/src/pybind/mgr/dashboard/controllers/_crud.py index 0ac299db6e46..14af17bc55b0 100644 --- a/src/pybind/mgr/dashboard/controllers/_crud.py +++ b/src/pybind/mgr/dashboard/controllers/_crud.py @@ -275,7 +275,7 @@ class Form: 'displayFlex': True, 'htmlClass': 'd-flex justify-content-end mb-0', 'items': [ - {"type": "cancel", "style": self.cancel_style, 'htmlClass': 'mr-2'}, + {"type": "cancel", "style": self.cancel_style, 'htmlClass': 'me-2'}, {"type": "submit", "style": self.submit_style, "title": self.action}, ] } diff --git a/src/pybind/mgr/dashboard/controllers/ceph_users.py b/src/pybind/mgr/dashboard/controllers/ceph_users.py index 3562f33a2271..a2952dbf867a 100644 --- a/src/pybind/mgr/dashboard/controllers/ceph_users.py +++ b/src/pybind/mgr/dashboard/controllers/ceph_users.py @@ -61,7 +61,7 @@ class CephUserEndpoints: create_cap_container = ArrayHorizontalContainer('Capabilities', 'capabilities', label_html_class='hidden cd-header mt-1', fields=[ FormField('Entity', 'entity', - field_type=str, html_class='mr-3'), + field_type=str, html_class='me-3'), FormField('Entity Capabilities', 'cap', field_type=str) ]) diff --git a/src/pybind/mgr/dashboard/frontend/src/styles.scss b/src/pybind/mgr/dashboard/frontend/src/styles.scss index f2c3052f800a..e5cea86285f2 100644 --- a/src/pybind/mgr/dashboard/frontend/src/styles.scss +++ b/src/pybind/mgr/dashboard/frontend/src/styles.scss @@ -230,4 +230,12 @@ json-schema-form { .ng-touched.ng-valid { @extend .is-valid; } + + .close { + @extend .btn-close; + + span { + display: none; + } + } }