A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
style: Mobile navigation style optimization
shuai061f0403e278
diff --git a/ui/src/components/Header/index.scss b/ui/src/components/Header/index.scssindex 9f2dd799..0bc6e2e3 100644--- a/ui/src/components/Header/index.scss+++ b/ui/src/components/Header/index.scss@@ -41,15 +41,6 @@}}- .nav-text {- flex: 1;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- padding: 0 10px;- min-width: 0;- }-.search-mobile {color: var(--bs-nav-link-color);}@@ -143,3 +134,15 @@}}}++@media screen and (max-width: 767px) {+ #header {+ .nav-text {+ flex: 1;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ min-width: 0;+ }+ }+}diff --git a/ui/src/components/Header/index.tsx b/ui/src/components/Header/index.tsxindex 58144808..52bd0922 100644--- a/ui/src/components/Header/index.tsx+++ b/ui/src/components/Header/index.tsx@@ -141,7 +141,7 @@ const Header: FC = () => {<SearchInput className="d-none d-lg-block maxw-560" />- <Nav className="d-block d-lg-none me-2">+ <Nav className="d-block d-lg-none me-2 ms-auto"><Buttonvariant="link"onClick={() => {@@ -155,7 +155,7 @@ const Header: FC = () => {{/* pc nav */}{user?.username ? (- <Nav className="d-flex align-items-center flex-nowrap flex-row ms-auto">+ <Nav className="d-flex align-items-center flex-nowrap flex-row"><Nav.Item className="me-2 d-block d-xl-none"><NavLinkto={askUrl}