diff --git a/zbook_frontend/src/components/WarningDialog.tsx b/zbook_frontend/src/components/WarningDialog.tsx index d315685..4a8de6e 100644 --- a/zbook_frontend/src/components/WarningDialog.tsx +++ b/zbook_frontend/src/components/WarningDialog.tsx @@ -18,8 +18,12 @@ export default function WarngingDialog({ }) { return ( -
-
+
+
diff --git a/zbook_frontend/src/components/elements/details/ListUserElement.tsx b/zbook_frontend/src/components/elements/details/ListUserElement.tsx index e62c4a1..851fa4c 100644 --- a/zbook_frontend/src/components/elements/details/ListUserElement.tsx +++ b/zbook_frontend/src/components/elements/details/ListUserElement.tsx @@ -49,7 +49,9 @@ export default function ListUserElement({
{username} diff --git a/zbook_frontend/src/components/navbars/NavLang.tsx b/zbook_frontend/src/components/navbars/NavLang.tsx index 6f403a5..2322252 100644 --- a/zbook_frontend/src/components/navbars/NavLang.tsx +++ b/zbook_frontend/src/components/navbars/NavLang.tsx @@ -41,7 +41,11 @@ export default function NavLink() { leaveFrom="opacity-100" leaveTo="opacity-0" > - + {locales.map((lang, langIdx) => ( - + {themeClass.map((choosed, idx) => (
-
+

{t("Notifications")}

@@ -145,7 +149,9 @@ export default function NotificationDialog() { diff --git a/zbook_frontend/src/components/parsers/CodeBlock.tsx b/zbook_frontend/src/components/parsers/CodeBlock.tsx index c478d63..6d1824f 100644 --- a/zbook_frontend/src/components/parsers/CodeBlock.tsx +++ b/zbook_frontend/src/components/parsers/CodeBlock.tsx @@ -49,7 +49,11 @@ export default function CodeBlock({ />
-
+
{lang === "mermaid" ? ( ) : ( diff --git a/zbook_frontend/src/components/parsers/HtmlParser.tsx b/zbook_frontend/src/components/parsers/HtmlParser.tsx index 68661fc..01886e7 100644 --- a/zbook_frontend/src/components/parsers/HtmlParser.tsx +++ b/zbook_frontend/src/components/parsers/HtmlParser.tsx @@ -192,7 +192,12 @@ const parseHTMLString = ( } } else if (tagName === "P") { return ( -

+

{Array.from(node.childNodes).map(processNode)}

); diff --git a/zbook_frontend/src/components/parsers/ParserElement.tsx b/zbook_frontend/src/components/parsers/ParserElement.tsx index 19be3b1..3ecc457 100644 --- a/zbook_frontend/src/components/parsers/ParserElement.tsx +++ b/zbook_frontend/src/components/parsers/ParserElement.tsx @@ -21,8 +21,12 @@ const options: HTMLReactParserOptions = { className="absolute inset-0 bg-grid-light dark:bg-grid-dark [mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.6))] dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]" style={{ backgroundPosition: "10px 10px" }} // 使用对象格式 >
-
-
+
+
- + -
+
-
+
{props.MarkdownBasicInfo.relative_path}
diff --git a/zbook_frontend/src/components/sidebars/RepoSideBar.tsx b/zbook_frontend/src/components/sidebars/RepoSideBar.tsx index a84ebf8..5c4872f 100644 --- a/zbook_frontend/src/components/sidebars/RepoSideBar.tsx +++ b/zbook_frontend/src/components/sidebars/RepoSideBar.tsx @@ -40,7 +40,11 @@ export default function RepoSideBar({ searchType={SearchType.REPO_DOCUMENT} /> -
+
-

+

{bio} {motto}

diff --git a/zbook_frontend/src/components/wrappers/FormGroupWrapper.tsx b/zbook_frontend/src/components/wrappers/FormGroupWrapper.tsx index f31b57f..2e46560 100644 --- a/zbook_frontend/src/components/wrappers/FormGroupWrapper.tsx +++ b/zbook_frontend/src/components/wrappers/FormGroupWrapper.tsx @@ -20,7 +20,11 @@ export default function FormGroupWrapper({ {showName} {children} -
+
{formik.errors[nameKey] && (formik.errors[nameKey] as string)}
diff --git a/zbook_frontend/src/components/wrappers/FormListBox.tsx b/zbook_frontend/src/components/wrappers/FormListBox.tsx index 9b5e0e0..56824d1 100644 --- a/zbook_frontend/src/components/wrappers/FormListBox.tsx +++ b/zbook_frontend/src/components/wrappers/FormListBox.tsx @@ -46,8 +46,10 @@ export default function FormListBox({ leaveTo="opacity-0" > {options.map((option, optionIdx) => (
-
+