Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Show database type on open

1ilitc0584f11c6bd
diff --git a/src/components/EditorHeader/Modal/Modal.jsx b/src/components/EditorHeader/Modal/Modal.jsx
index b3521485..fc0d9d6a 100644
--- a/src/components/EditorHeader/Modal/Modal.jsx
+++ b/src/components/EditorHeader/Modal/Modal.jsx
@@ -337,7 +337,7 @@ export default function Modal({
(modal === MODAL.IMPORT_SRC && importSource.src === ""),
}}
cancelText={t("cancel")}
- width={modal === MODAL.NEW ? 740 : 600}
+ width={modal === MODAL.NEW || modal === MODAL.OPEN ? 740 : 600}
bodyStyle={{ maxHeight: window.innerHeight - 280, overflow: "auto" }}
>
{getModalBody()}
diff --git a/src/components/EditorHeader/Modal/Open.jsx b/src/components/EditorHeader/Modal/Open.jsx
index cf7a5266..bf23c054 100644
--- a/src/components/EditorHeader/Modal/Open.jsx
+++ b/src/components/EditorHeader/Modal/Open.jsx
@@ -37,6 +37,7 @@ export default function Open({ selectedDiagramId, setSelectedDiagramId }) {
<th>{t("name")}</th>
<th>{t("last_modified")}</th>
<th>{t("size")}</th>
+ <th>{t("type")}</th>
</tr>
</thead>
<tbody>
@@ -63,6 +64,7 @@ export default function Open({ selectedDiagramId, setSelectedDiagramId }) {
d.lastModified.toLocaleTimeString()}
</td>
<td className="py-1">{getDiagramSize(d)}</td>
+ <td className="py-1">{d.database ?? 'generic'}</td>
</tr>
);
})}