diff --git a/frappe/public/js/frappe/form/section.js b/frappe/public/js/frappe/form/section.js
index 09db5ccc13..5004afcb8a 100644
--- a/frappe/public/js/frappe/form/section.js
+++ b/frappe/public/js/frappe/form/section.js
@@ -63,8 +63,8 @@ export default class Section {
make_head() {
this.head = $(`
-
- ${__(this.df.label, null, this.df.parent)}
+ ${__(this.df.label, null, this.df.parent)}
+
`);
diff --git a/frappe/public/scss/desk/form.scss b/frappe/public/scss/desk/form.scss
index 77eacd82b3..8f9a8a767a 100644
--- a/frappe/public/scss/desk/form.scss
+++ b/frappe/public/scss/desk/form.scss
@@ -78,17 +78,6 @@
}
}
}
-.section-head {
- display: flex;
- align-items: center;
- gap: 8px;
-}
-
-.section-head::after {
- content: "";
- flex: 1;
- border-bottom: 1px solid var(--border-color);
-}
.section-head,
.section-body {
margin: auto !important;
@@ -125,10 +114,9 @@
display: none !important;
border: 0 !important;
}
-
+.form-section.card-section,
.form-dashboard-section {
border-bottom: 1px solid var(--border-color);
- padding: var(--padding-md) 0;
}
.form-section.card-section.hide-border {