From 59a393bf27fc1e7e174e02584b0ddde3de178e51 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 25 Aug 2026 17:11:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/routes/user-center/settings.css | 6 ++++++ .../notification-preferences-contract.test.cjs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/assets/css/routes/user-center/settings.css b/assets/css/routes/user-center/settings.css index e0eec789..253d2bd5 100644 --- a/assets/css/routes/user-center/settings.css +++ b/assets/css/routes/user-center/settings.css @@ -86,6 +86,12 @@ opacity: 0; } +.uc-notification-switch input::before, +.uc-notification-switch input::after { + display: none !important; + content: none !important; +} + .uc-notification-switch span { width: 100%; height: 100%; diff --git a/tests/widget-system/notification-preferences-contract.test.cjs b/tests/widget-system/notification-preferences-contract.test.cjs index c71dafc5..14900f09 100644 --- a/tests/widget-system/notification-preferences-contract.test.cjs +++ b/tests/widget-system/notification-preferences-contract.test.cjs @@ -37,6 +37,7 @@ test('notification preference endpoint stores only the three boolean categories' test('notification preference UI uses the global toast lifecycle', () => { const template = read('inc/helpers/user-center-renderers/profile-msg.php'); const script = read('assets/js/routes/user-center.js'); + const styles = read('assets/css/routes/user-center/settings.css'); for (const text of [ '文章评论', @@ -49,6 +50,7 @@ test('notification preference UI uses the global toast lifecycle', () => { assert.ok(template.includes(text)); } assert.match(template, /role="switch"/); + assert.match(styles, /\.uc-notification-switch input::before,[\s\S]*?\.uc-notification-switch input::after[\s\S]*?content: none !important/); assert.match(script, /aksrt-notification-preferences-toast/); assert.match(script, /notyf\([^;]+?'load'[^;]+?toastId/); assert.match(script, /notyf\([^;]+?'success'[^;]+?toastId/);