修复了一些问题
This commit is contained in:
1 parent
11f1c23fa7
commit
59a393bf27
2 files changed
+8
No files matched your search
@@ -86,6 +86,12 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.uc-notification-switch input::before,
|
||||||
|
.uc-notification-switch input::after {
|
||||||
|
display: none !important;
|
||||||
|
content: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.uc-notification-switch span {
|
.uc-notification-switch span {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ test('notification preference endpoint stores only the three boolean categories'
|
|||||||
test('notification preference UI uses the global toast lifecycle', () => {
|
test('notification preference UI uses the global toast lifecycle', () => {
|
||||||
const template = read('inc/helpers/user-center-renderers/profile-msg.php');
|
const template = read('inc/helpers/user-center-renderers/profile-msg.php');
|
||||||
const script = read('assets/js/routes/user-center.js');
|
const script = read('assets/js/routes/user-center.js');
|
||||||
|
const styles = read('assets/css/routes/user-center/settings.css');
|
||||||
|
|
||||||
for (const text of [
|
for (const text of [
|
||||||
'文章评论',
|
'文章评论',
|
||||||
@@ -49,6 +50,7 @@ test('notification preference UI uses the global toast lifecycle', () => {
|
|||||||
assert.ok(template.includes(text));
|
assert.ok(template.includes(text));
|
||||||
}
|
}
|
||||||
assert.match(template, /role="switch"/);
|
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, /aksrt-notification-preferences-toast/);
|
||||||
assert.match(script, /notyf\([^;]+?'load'[^;]+?toastId/);
|
assert.match(script, /notyf\([^;]+?'load'[^;]+?toastId/);
|
||||||
assert.match(script, /notyf\([^;]+?'success'[^;]+?toastId/);
|
assert.match(script, /notyf\([^;]+?'success'[^;]+?toastId/);
|
||||||
|
|||||||
Reference in new issue
Block a user