Show database type on open

This commit is contained in:
1ilit 2024-06-11 07:30:30 +03:00
parent 6c1ff1518f
commit c0584f11c6
2 changed files with 3 additions and 1 deletions

View File

@ -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()}

View File

@ -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>
);
})}