From 4e2bb58e2db8932fdee8a68375b89e059b3e102c Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 5 Jun 2023 13:16:02 +0200 Subject: [PATCH] gui: Avoid code generating HTML (#8923) --- gui/default/assets/css/overrides.css | 2 +- gui/default/index.html | 22 +++++++-- .../syncthing/core/aboutModalView.html | 20 ++++---- .../syncthing/core/editShareTemplate.html | 8 +++- .../syncthing/core/syncthingController.js | 46 +------------------ .../syncthing/device/editDeviceModalView.html | 2 +- .../device/globalChangesModalView.html | 2 +- .../syncthing/folder/editFolderModalView.html | 2 +- .../transfer/localChangedFilesModalView.html | 2 +- .../transfer/remoteNeededFilesModalView.html | 2 +- 10 files changed, 41 insertions(+), 67 deletions(-) diff --git a/gui/default/assets/css/overrides.css b/gui/default/assets/css/overrides.css index 06f705629..8b0e9fb45 100644 --- a/gui/default/assets/css/overrides.css +++ b/gui/default/assets/css/overrides.css @@ -185,7 +185,7 @@ td input[type="checkbox"] { } /* Wrap long file paths to prevent text overflow. See issue #6268. */ -.file-path { +.word-break-all { word-break: break-all; } diff --git a/gui/default/index.html b/gui/default/index.html index ac84df04c..cf4d60314 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -288,7 +288,7 @@

{{err.when | date:"yyyy-MM-dd HH:mm:ss"}}: - +