Skip to content

Commit 0797a3f

Browse files
committed
fix: set field comment width instead of popover width
1 parent 6580a40 commit 0797a3f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/EditorCanvas/Table.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,16 +223,15 @@ export default function Table(props) {
223223
<p>
224224
<strong>Comment:</strong>{" "}
225225
{e.comment === "" ? (
226-
"Not comment"
226+
"No comment"
227227
) : (
228-
<div>{e.comment}</div>
228+
<div style={{ maxWidth: "260px", wordBreak: "break-word" }}>{e.comment}</div>
229229
)}
230230
</p>
231231
</div>
232232
}
233233
position="right"
234234
showArrow
235-
style={{ width: "200px", wordBreak: "break-word" }}
236235
>
237236
{field(e, i)}
238237
</Popover>

0 commit comments

Comments
 (0)