Skip to content

Commit 7639dac

Browse files
authored
Merge pull request #33 from santilapi13/popovers_comments
Fix to comments visualization in tables and fields popovers
2 parents 9faf99d + 0797a3f commit 7639dac

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/EditorCanvas/Table.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default function Table(props) {
169169
position="rightTop"
170170
showArrow
171171
trigger="click"
172-
style={{ width: "200px" }}
172+
style={{ width: "200px", wordBreak: "break-word" }}
173173
>
174174
<Button
175175
icon={<IconMore />}
@@ -220,6 +220,14 @@ export default function Table(props) {
220220
<strong>Default :</strong>{" "}
221221
{e.default === "" ? "Not set" : e.default}
222222
</p>
223+
<p>
224+
<strong>Comment:</strong>{" "}
225+
{e.comment === "" ? (
226+
"No comment"
227+
) : (
228+
<div style={{ maxWidth: "260px", wordBreak: "break-word" }}>{e.comment}</div>
229+
)}
230+
</p>
223231
</div>
224232
}
225233
position="right"

0 commit comments

Comments
 (0)