fix(frontend): match navigation icon divider spacing

This commit is contained in:
kate522 committed 2026-10-29 18:17:51 +08:00
1 parent f019760297
commit b520d29368
2 files changed
+25 -3

No files matched your search

+3 -3
View File
@@ -343,7 +343,7 @@ if (!function_exists('aksrt_menu_button')) :
if ($unread > 0) {
$notification_but .= '<span class="aksrt-notification-badge">' . esc_html((string) min(99, $unread)) . '</span>';
}
$notification_but .= "</a></li>\n";
$notification_but .= '</a></li>';
}
$sign_but = '';
@@ -372,8 +372,8 @@ if (!function_exists('aksrt_menu_button')) :
. esc_attr__('打开搜索', 'aksrt') . '"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-search"></use></svg></a></li>';
}
// Inline list items retain the reference whitespace between controls.
$sign_but .= "\n";
// Match the reference's adjacent inline items; text whitespace adds a gap
// before each divider on top of the list item's own horizontal padding.
$account = '<ul class="list-inline splitters relative">'
. $notification_but . $sign_but . $search_but . '</ul>';