-
+
+ }
+ placeholder="搜索课程"
+ className="w-96 rounded-full"
+ value={searchValue}
+ onChange={(e) => setSearchValue(e.target.value)}
+ onPressEnter={(e) => {
+ if (
+ !window.location.pathname.startsWith("/courses/") &&
+ !window.location.pathname.startsWith("my")
+ ) {
+ navigate(`/courses/`);
+ window.scrollTo({
+ top: 0,
+ behavior: "smooth",
+ });
}
- placeholder="搜索课程"
- className="w-96 rounded-full"
- value={searchValue}
- onChange={(e) => setSearchValue(e.target.value)}
- onPressEnter={(e) => {
- if (
- !window.location.pathname.startsWith("/courses/") &&
- !window.location.pathname.startsWith("my")
- ) {
- navigate(`/courses/`);
- window.scrollTo({
- top: 0,
- behavior: "smooth",
- });
- }
- }}
- />
-
- {isAuthenticated && (
- <>
-
- >
- )}
- {isAuthenticated && (
+ }}
+ />
+
+ {isAuthenticated && (
+ <>
- )}
- {isAuthenticated ? (
-
- ) : (
-
- )}
-
+ >
+ )}
+ {isAuthenticated && (
+
+ )}
+ {isAuthenticated ? (
+
+ ) : (
+
+ )}
+
);
}
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index f65bd8b..34de7f4 100755
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -161,7 +161,3 @@
/* 去除最后一行的底部边框 */
}
-.mind-editor {
- height: calc(100vh - 285px);
- width: 100%;
-}
\ No newline at end of file