From ec0d7c0835c46ceac1e2861ed3b4e67c861cfde0 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Tue, 21 Jan 2025 21:59:08 +0200 Subject: [PATCH] client: switch widget: redo the switch style --- src/public/app/widgets/switch.js | 81 +++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 23 deletions(-) diff --git a/src/public/app/widgets/switch.js b/src/public/app/widgets/switch.js index 7f422b79c..9a74b67bc 100644 --- a/src/public/app/widgets/switch.js +++ b/src/public/app/widgets/switch.js @@ -5,25 +5,74 @@ const TPL = `
 
@@ -113,7 +149,6 @@ export default class SwitchWidget extends NoteContextAwareWidget { this.$switchButton.toggleClass("on", this.currentState); this.$switchToggle.prop("checked", this.currentState); - console.log(this.currentState); if (this.currentState) { this.$switchName.text(this.switchOffName);