From f9039b4fbdc359b378d847400a729803a3a4b8a2 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Fri, 12 May 2023 05:53:56 +0200 Subject: Replace "div" with "span" inside "p" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The permitted contents of a paragraph are only phrasing contents, so "div" elements can not be used, although "span" can. Besides being invalid HTML it seems that the browser ends the paragraph at the div, so the label/input that appears after it is treated as being in a new paragraph, which is not indented by default, and thus is not aligned with the rest of its sibling inputs. Note that an additional div is nevertheless added once the page is loaded to be able to select the groups, but this one does not break its parent paragraph (maybe due to being added after the page load, but I do not really know). Nevertheless, it needs to be explicitly indented, and the second indentend wrapper needs to be removed, as it affects only the label but not the div/input, and therefore the label had an extra indentation over the input. Signed-off-by: Daniel Calviño Sánchez --- apps/settings/templates/settings/admin/sharing.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/settings/templates/settings/admin/sharing.php b/apps/settings/templates/settings/admin/sharing.php index e92f6ff27b3..ff5a11f737d 100644 --- a/apps/settings/templates/settings/admin/sharing.php +++ b/apps/settings/templates/settings/admin/sharing.php @@ -121,12 +121,10 @@
-
-
-
- -
-
+ +
+ +