From 63316be535f45d60c68e4c602b59daa0fb0bb8ad Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 22 Nov 2022 10:17:46 +0100 Subject: [PATCH] Removed `inline` parameter of checkbox and select components --- dev/App/Abstract.js | 3 --- dev/Component/Checkbox.js | 1 - .../Views/Admin/AdminSettingsDomains.html | 1 + .../Views/Admin/AdminSettingsSecurity.html | 7 ++--- .../templates/Views/Admin/PopupsDomain.html | 27 +++++++------------ .../templates/Views/User/SettingsGeneral.html | 10 +++---- .../Views/User/SettingsSecurity.html | 1 - 7 files changed, 16 insertions(+), 34 deletions(-) diff --git a/dev/App/Abstract.js b/dev/App/Abstract.js index 02d547c4e..7f925251f 100644 --- a/dev/App/Abstract.js +++ b/dev/App/Abstract.js @@ -36,9 +36,6 @@ export class AbstractApp { createViewModel: (params, componentInfo) => { params = params || {}; i18nToNodes(componentInfo.element); - if (params.inline) { - componentInfo.element.style.display = 'inline-block'; - } return new ClassObject(params); } } diff --git a/dev/Component/Checkbox.js b/dev/Component/Checkbox.js index 68825468f..5d427c89c 100644 --- a/dev/Component/Checkbox.js +++ b/dev/Component/Checkbox.js @@ -7,7 +7,6 @@ export class CheckboxComponent { : ko.observable(undefined === params.enable || !!params.enable); this.label = params.label; - this.inline = params.inline; } click() { diff --git a/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsDomains.html b/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsDomains.html index fd3b9b555..98171ac6c 100644 --- a/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsDomains.html +++ b/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsDomains.html @@ -32,6 +32,7 @@ +
diff --git a/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsSecurity.html b/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsSecurity.html index 65d93e872..6d3d1aa3b 100644 --- a/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsSecurity.html +++ b/snappymail/v/0.0.0/app/templates/Views/Admin/AdminSettingsSecurity.html @@ -13,8 +13,7 @@ name: 'Checkbox', params: { value: capaOpenPGP, - label: 'TAB_SECURITY/LABEL_ALLOW_OPEN_PGP', - inline: true + label: 'TAB_SECURITY/LABEL_ALLOW_OPEN_PGP' } }">
@@ -65,11 +64,9 @@ name: 'Checkbox', params: { value: verifySslCertificate, - label: 'TAB_SECURITY/LABEL_REQUIRE_VERIFICATION', - inline: true + label: 'TAB_SECURITY/LABEL_REQUIRE_VERIFICATION' } }"> -
(user@domain.com → user) @@ -62,11 +61,9 @@ name: 'Checkbox', params: { value: imapSslVerify_peer, - label: 'TAB_SECURITY/LABEL_REQUIRE_VERIFICATION', - inline: true + label: 'TAB_SECURITY/LABEL_REQUIRE_VERIFICATION' } }"> -
(user@domain.com → user) @@ -129,17 +125,14 @@ name: 'Checkbox', params: { label: 'POPUPS_DOMAIN/LABEL_SET_SENDER', - value: smtpSetSender, - inline: true + value: smtpSetSender } }"> -
-
() @@ -149,11 +142,9 @@ name: 'Checkbox', params: { value: smtpSslVerify_peer, - label: 'TAB_SECURITY/LABEL_REQUIRE_VERIFICATION', - inline: true + label: 'TAB_SECURITY/LABEL_REQUIRE_VERIFICATION' } }"> -
-
  @@ -201,12 +200,11 @@ ▶️
-
  diff --git a/snappymail/v/0.0.0/app/templates/Views/User/SettingsSecurity.html b/snappymail/v/0.0.0/app/templates/Views/User/SettingsSecurity.html index 7f1dd2633..45a67e77b 100644 --- a/snappymail/v/0.0.0/app/templates/Views/User/SettingsSecurity.html +++ b/snappymail/v/0.0.0/app/templates/Views/User/SettingsSecurity.html @@ -5,7 +5,6 @@