diff --git a/src/components/EditorSidePanel/NotesOverview.jsx b/src/components/EditorSidePanel/NotesOverview.jsx index 7edee0d..e973cc0 100644 --- a/src/components/EditorSidePanel/NotesOverview.jsx +++ b/src/components/EditorSidePanel/NotesOverview.jsx @@ -78,7 +78,11 @@ export default function NotesOverview() { > {notes.map((n, i) => ( {n.title}} + header={ +
+ {n.title} +
+ } itemKey={`${n.id}`} id={`scroll_note_${n.id}`} key={n.id} diff --git a/src/components/EditorSidePanel/RelationshipsOverview.jsx b/src/components/EditorSidePanel/RelationshipsOverview.jsx index 027a57b..5219be5 100644 --- a/src/components/EditorSidePanel/RelationshipsOverview.jsx +++ b/src/components/EditorSidePanel/RelationshipsOverview.jsx @@ -15,7 +15,12 @@ import { IconMore, IconSearch, } from "@douyinfe/semi-icons"; -import { Cardinality, Constraint, Action, ObjectType } from "../../data/constants"; +import { + Cardinality, + Constraint, + Action, + ObjectType, +} from "../../data/constants"; import useTables from "../../hooks/useTables"; import useUndoRedo from "../../hooks/useUndoRedo"; import Empty from "./Empty"; @@ -90,7 +95,14 @@ function RelationshipPanel({ data }) { return (
- + + {data.name} +
+ } + itemKey={`${data.id}`} + >
Primary: diff --git a/src/components/EditorSidePanel/TablesOverview.jsx b/src/components/EditorSidePanel/TablesOverview.jsx index f9b94f3..6d60055 100644 --- a/src/components/EditorSidePanel/TablesOverview.jsx +++ b/src/components/EditorSidePanel/TablesOverview.jsx @@ -174,7 +174,14 @@ function TablePanel({ data }) { return (
- {data.name}
} itemKey={`${data.id}`}> + + {data.name} +
+ } + itemKey={`${data.id}`} + >
Name:
- {data.name}
} itemKey={`${index}`}> + + {data.name} +
+ } + itemKey={`${index}`} + >
Name: