From 7df75e681dbe6d04c40a8bd80dd513a2390b5b14 Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Wed, 21 Aug 2024 15:02:45 +0200 Subject: [PATCH] gui: Replace global "Panel padding decrease" style with targeted class (#9659) Transplanted from https://github.com/emlun/syncthing/pull/8 (meta-PR into https://github.com/syncthing/syncthing/pull/9175) by request of @acolomb (see: https://github.com/emlun/syncthing/pull/8#discussion_r1724470574). This padding decrease currently applies to _all_ collapsible panels, but this padding decrease may not be appropriate for all collapsible panels. In particular, it will not be appropriate for the collapsible panels introduced in https://github.com/emlun/syncthing/pull/8. --- cmd/ursrv/serve/static/index.html | 2 +- gui/default/assets/css/overrides.css | 6 +----- gui/default/index.html | 6 +++--- .../settings/advancedSettingsModalView.html | 16 ++++++++-------- .../transfer/remoteNeededFilesModalView.html | 2 +- 5 files changed, 14 insertions(+), 18 deletions(-) diff --git a/cmd/ursrv/serve/static/index.html b/cmd/ursrv/serve/static/index.html index 811037140..901989e23 100644 --- a/cmd/ursrv/serve/static/index.html +++ b/cmd/ursrv/serve/static/index.html @@ -270,7 +270,7 @@ found in the LICENSE file.
-
+
diff --git a/gui/default/assets/css/overrides.css b/gui/default/assets/css/overrides.css index 043e6a924..85f3d2c9d 100644 --- a/gui/default/assets/css/overrides.css +++ b/gui/default/assets/css/overrides.css @@ -304,11 +304,7 @@ a.toggler:hover { text-decoration: none; } -/** - * Panel padding decrease - */ - -.panel-collapse .panel-body { +.panel-body.less-padding { padding: 5px; } diff --git a/gui/default/index.html b/gui/default/index.html index 5765a5f7b..a9a591bb2 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -413,7 +413,7 @@
-
+
@@ -681,7 +681,7 @@
-
+
@@ -796,7 +796,7 @@
-
+
diff --git a/gui/default/syncthing/settings/advancedSettingsModalView.html b/gui/default/syncthing/settings/advancedSettingsModalView.html index 0f4832f6b..37312e053 100644 --- a/gui/default/syncthing/settings/advancedSettingsModalView.html +++ b/gui/default/syncthing/settings/advancedSettingsModalView.html @@ -13,7 +13,7 @@

GUI

-
+
@@ -32,7 +32,7 @@

Options

-
+
@@ -51,7 +51,7 @@

LDAP

-
+
@@ -70,7 +70,7 @@

Folders

-
+
-
+
@@ -103,7 +103,7 @@

Devices

-
+
-
+
@@ -133,7 +133,7 @@

Defaults

-
+