From 7e0c24ec893a4c3e29a313a05863b049645dd1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Wed, 16 Jun 2021 21:10:16 +0200 Subject: [PATCH] gui: Move the QR code button next to device ID in editDevice modal (#7653) --- gui/default/assets/css/overrides.css | 6 +++++ .../syncthing/device/editDeviceModalView.html | 23 ++++++++++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/gui/default/assets/css/overrides.css b/gui/default/assets/css/overrides.css index c79f9ab22..252bae92c 100644 --- a/gui/default/assets/css/overrides.css +++ b/gui/default/assets/css/overrides.css @@ -443,3 +443,9 @@ ul.three-columns li, ul.two-columns li { background-color: #eeeeee; opacity: 1; } + +/* Make a "well" look more like a readonly text input when grouped with a button */ +.input-group .well-sm { + padding-top: 6px; + padding-bottom: 6px; +} diff --git a/gui/default/syncthing/device/editDeviceModalView.html b/gui/default/syncthing/device/editDeviceModalView.html index 7a776b710..38fb995c4 100644 --- a/gui/default/syncthing/device/editDeviceModalView.html +++ b/gui/default/syncthing/device/editDeviceModalView.html @@ -11,7 +11,14 @@
- +
+ +
+ +
+
@@ -22,14 +29,21 @@

- The device ID to enter here can be found in the "Actions > Show ID" dialog on the other device. Spaces and dashes are optional (ignored). + The device ID to enter here can be found in the "Actions > Show ID" dialog on the other device. Spaces and dashes are optional (ignored). When adding a new device, keep in mind that this device must be added on the other side too. The device ID cannot be blank. The entered device ID does not look valid. It should be a 52 or 56 character string consisting of letters and numbers, with spaces and dashes being optional. A device with that ID is already added.

-
{{currentDevice.deviceID}}
+
+
{{currentDevice.deviceID}}
+
+ +
+
@@ -151,9 +165,6 @@ -