diff --git a/web/app/globals.css b/web/app/globals.css index d0c12603..b4c8ea0d 100644 --- a/web/app/globals.css +++ b/web/app/globals.css @@ -8,6 +8,10 @@ max-height: 450px; } +.btn { + @apply font-normal; +} + .cm-li-btn { @apply no-animation h-auto w-full justify-start rounded-none border-none bg-white px-6 py-4 text-left font-normal text-base shadow-none hover:bg-zinc-100 focus:bg-zinc-300; } @@ -16,3 +20,11 @@ .cm-pb-footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); } + +.scrollbar-hide::-webkit-scrollbar { + display: none; +} +.scrollbar-hide { + -ms-overflow-style: none; + scrollbar-width: none; +} diff --git a/web/components/course/components/CourseRegisterConfirmDialog.tsx b/web/components/course/components/CourseRegisterConfirmDialog.tsx index 074c480c..bdbc9b0c 100644 --- a/web/components/course/components/CourseRegisterConfirmDialog.tsx +++ b/web/components/course/components/CourseRegisterConfirmDialog.tsx @@ -46,9 +46,7 @@ export default function CourseRegisterConfirmDialog({ return (
{mode === "add" ? "次のように変更" : "次の授業を削除"}
します。よろしいですか?
diff --git a/web/components/course/components/SelectCourseDialog.tsx b/web/components/course/components/SelectCourseDialog.tsx
index 52f5dafa..38dfa20a 100644
--- a/web/components/course/components/SelectCourseDialog.tsx
+++ b/web/components/course/components/SelectCourseDialog.tsx
@@ -1,9 +1,57 @@
import { DAY_TO_JAPANESE_MAP } from "common/consts";
import type { Course, Day } from "common/types";
import { useEffect, useState } from "react";
+import { MdClose, MdSearch } from "react-icons/md";
import courseApi from "~/api/course";
import CourseRegisterConfirmDialog from "./CourseRegisterConfirmDialog";
+import TagFilter from "./TagFilter";
+const faculties = [
+ "all",
+ "zenki",
+ "law",
+ "medicine",
+ "engineering",
+ "arts",
+ "science",
+ "agriculture",
+ "economics",
+ "liberal-arts",
+ "education",
+ "pharmacy",
+] as const;
+export type FacultyKey = (typeof faculties)[number];
+const facultyRegExMap = new Map
{currentEdit?.course?.name ?? "-"}
{`${
- currentEdit?.course?.teacher ?? "-"
- } / ${currentEdit?.course?.id ?? "-"}`} {`${currentEdit?.course?.teacher ?? "-"} / ${
+ currentEdit?.course?.id ?? "-"
+ }`}
条件に当てはまる授業はありません。
- {currentEdit
- ? `${DAY_TO_JAPANESE_MAP.get(currentEdit.columnName)}曜${
- currentEdit.rowIndex + 1
- }限の授業を選択`
- : "授業を選択"}
-
-
+
+ {currentEdit
+ ? `${DAY_TO_JAPANESE_MAP.get(currentEdit.columnName)}曜${
+ currentEdit.rowIndex + 1
+ }限の授業を編集中`
+ : "編集"}
+
+
+ 現在の授業
+ 現在の授業
{currentEdit?.course ? (
-
- {filteredAvailableCourses.map((course) => (
-
)}