修复了一些问题

This commit is contained in:
kate522 committed 2026-08-25 18:34:17 +08:00
1 parent 3dbd196e06
commit ff521c9ad6
2 files changed
+4

No files matched your search

+2
View File
@@ -212,7 +212,9 @@
} }
.aksrt-header-userbox .user-info > .abs-right { .aksrt-header-userbox .user-info > .abs-right {
top: 50%;
right: 2px; right: 2px;
transform: translateY(-50%);
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -26,6 +26,7 @@ test('notification icon positions map to their four render locations', () => {
const jsSchema = read('assets/admin/src/schema/sections/users/notifications.js'); const jsSchema = read('assets/admin/src/schema/sections/users/notifications.js');
const integration = read('src/Settings/Integration.php'); const integration = read('src/Settings/Integration.php');
const header = read('inc/helpers/header/aksrt-header-navbar.php'); const header = read('inc/helpers/header/aksrt-header-navbar.php');
const headerStyles = read('assets/css/frontend/header-userbox.css');
const userCenter = read('inc/helpers/aksrt-user-center.php'); const userCenter = read('inc/helpers/aksrt-user-center.php');
const userHome = read('templates/parts/user/author-hero.php'); const userHome = read('templates/parts/user/author-hero.php');
@@ -39,6 +40,7 @@ test('notification icon positions map to their four render locations', () => {
assert.match(integration, /\['nav_menu', 'avatar_dropdown', 'user_center_header', 'user_home_header'\]/); assert.match(integration, /\['nav_menu', 'avatar_dropdown', 'user_center_header', 'user_home_header'\]/);
assert.match(header, /in_array\('nav_menu', \$positions, true\)/); assert.match(header, /in_array\('nav_menu', \$positions, true\)/);
assert.match(header, /in_array\('avatar_dropdown', \$positions, true\)/); assert.match(header, /in_array\('avatar_dropdown', \$positions, true\)/);
assert.match(headerStyles, /\.aksrt-header-userbox \.user-info > \.abs-right \{[\s\S]*?top: 50%;[\s\S]*?transform: translateY\(-50%\);/);
assert.match(header, /aksrt-nav-icon aksrt-nav-notification/); assert.match(header, /aksrt-nav-icon aksrt-nav-notification/);
assert.match(header, /\$notification_but \. \$sign_but \. \$search_but/); assert.match(header, /\$notification_but \. \$sign_but \. \$search_but/);
assert.match(userCenter, /in_array\('user_center_header'/); assert.match(userCenter, /in_array\('user_center_header'/);