Skip to content

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

fix: set field comment width instead of popover width

santilapi130797a3fd7a20
diff --git a/src/components/EditorCanvas/Table.jsx b/src/components/EditorCanvas/Table.jsx
index 6e107b0a..9601e4d8 100644
--- a/src/components/EditorCanvas/Table.jsx
+++ b/src/components/EditorCanvas/Table.jsx
@@ -223,16 +223,15 @@ export default function Table(props) {
<p>
<strong>Comment:</strong>{" "}
{e.comment === "" ? (
- "Not comment"
+ "No comment"
) : (
- <div>{e.comment}</div>
+ <div style={{ maxWidth: "260px", wordBreak: "break-word" }}>{e.comment}</div>
)}
</p>
</div>
}
position="right"
showArrow
- style={{ width: "200px", wordBreak: "break-word" }}
>
{field(e, i)}
</Popover>