fix(nav): never drop top-nav 发布 when submit page URL is empty

aksrt_get_new_post_url() returns '' without a page-submit assignment,
which previously skipped the post action and emptied the multi-type
chip. Fall back to post-new.php, keep a last-resort action list, put
radius/jb paint on the toggle, and force chip visibility CSS.
This commit is contained in:
kate522 committed 2026-07-25 12:00:07 +08:00
1 parent e194c603cb
commit c8b4d1a851
2 files changed
+39 -5

No files matched your search

@@ -67,9 +67,14 @@
/* Multi-type toggle lives outside .navbar-but-cluster on live zibll DOM.
* Paint classes (jb-*) set --this-bg on the toggle; force them to show. */
.navbar-top .navbar-form.navbar-but .newadd-btns__toggle.navbar-cta,
.navbar-top .navbar-but .newadd-btns__toggle.navbar-cta {
.navbar-top .navbar-but .newadd-btns__toggle.navbar-cta,
.navbar-top .navbar-form.navbar-but a.navbar-newposts.navbar-cta,
.navbar-top .navbar-form.navbar-but a.newadd-btns.navbar-cta {
display: inline-flex !important;
visibility: visible !important;
opacity: 1 !important;
color: #fff !important;
background: var(--this-bg, var(--color-primary, #2f6df6)) !important;
background: var(--this-bg, linear-gradient(135deg, #59c3fb 10%, #268df7 100%)) !important;
border-radius: var(--navbar-cta-radius, 50px);
cursor: pointer;
}
@@ -798,3 +803,20 @@ body.dark-theme .toggle-theme .theme-icon-sun {
width: min(220px, 42vw);
}
}
/* Ensure publish form is never zero-sized */
.navbar-top .navbar-form.navbar-but {
display: flex !important;
align-items: center !important;
visibility: visible !important;
min-width: 0;
flex: 0 0 auto;
}
.navbar-top .navbar-form.navbar-but .newadd-btns.hover-show {
display: block !important;
visibility: visible !important;
width: fit-content !important;
max-width: fit-content !important;
line-height: normal !important;
}