fix(nav): portal publish menu so chip cannot stretch

Move multi-type 发布 menu to document.body with fixed positioning;
chip uses fit-content only and never inherits the 168px menu width.
This commit is contained in:
2026-07-22 10:11:59 +08:00
parent 57fa97bf9b
commit b7ee5987f0
4 changed files with 306 additions and 43 deletions
+11
View File
@@ -161,6 +161,17 @@ trait ScriptsPart1b {
);
}
$hmb_js = get_template_directory() . '/assets/js/header-newadd.js';
if (file_exists($hmb_js)) {
wp_enqueue_script(
'aksrt-header-newadd',
$base_uri . '/assets/js/header-newadd.js',
[],
(string) filemtime($hmb_js),
true
);
}
// VIP modal (zibll .pay-vip)
$vip_on = class_exists('\AKSRT\Settings\Settings')
&& !empty(\AKSRT\Settings\Settings::get_payment_vip_settings()['enabled']);