修复了一些问题
This commit is contained in:
@@ -212,7 +212,9 @@
|
||||
}
|
||||
|
||||
.aksrt-header-userbox .user-info > .abs-right {
|
||||
top: 50%;
|
||||
right: 2px;
|
||||
transform: translateY(-50%);
|
||||
display: inline-flex;
|
||||
align-items: 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 integration = read('src/Settings/Integration.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 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(header, /in_array\('nav_menu', \$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, /\$notification_but \. \$sign_but \. \$search_but/);
|
||||
assert.match(userCenter, /in_array\('user_center_header'/);
|
||||
|
||||
Reference in New Issue
Block a user