diff options
| author | Joanne <zehan_ding@brown.edu> | 2025-06-27 10:45:25 -0400 |
|---|---|---|
| committer | Joanne <zehan_ding@brown.edu> | 2025-06-27 10:45:25 -0400 |
| commit | 729f9ed22961af566e903fe651d0cde6401c9fc0 (patch) | |
| tree | 1711613b083a5e56890143f75906b33cf5656957 /src/client/views/nodes/formattedText/DashDocView.tsx | |
| parent | c990c71e52b238a43c3877386429132d57cc0bfd (diff) | |
| parent | 2d70a3bc17fe94d0bf92d8362b8fda8a2e4a82e1 (diff) | |
Merge branch 'master' of https://github.com/brown-dash/Dash-Web into joanne-tutorialagent
Diffstat (limited to 'src/client/views/nodes/formattedText/DashDocView.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/DashDocView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/DashDocView.tsx b/src/client/views/nodes/formattedText/DashDocView.tsx index e7f2cdba8..5570ff704 100644 --- a/src/client/views/nodes/formattedText/DashDocView.tsx +++ b/src/client/views/nodes/formattedText/DashDocView.tsx @@ -183,7 +183,7 @@ export class DashDocView { this.dom = document.createElement('span'); this.dom.style.position = 'relative'; this.dom.style.textIndent = '0'; - this.dom.style.width = (+node.attrs.width.toString().replace('px', '') + horizPadding).toString(); + this.dom.style.width = (+node.attrs.width.toString().replace('px', '') + horizPadding).toString() + 'px'; this.dom.style.height = node.attrs.height; this.dom.style.display = node.attrs.hidden ? 'none' : 'inline-block'; this.dom.style.float = node.attrs.float; |
