aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-07-03 21:50:09 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-07-03 21:50:09 -0400
commit32365d3294e45dbc7c060b45c0aeba658802e078 (patch)
tree64f59b3b248ba73a6a46cd61dfab8085dd9549eb /src/client/views/nodes/formattedText
parenta979ebce6cf3b3aaa0fb6ea3870988b6edc6a889 (diff)
fixed position of link button for images and comparison boxes by making them position:relative instead of absoulte. fixed elllipsis of elided bulleted text.
Diffstat (limited to 'src/client/views/nodes/formattedText')
-rw-r--r--src/client/views/nodes/formattedText/nodes_rts.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/formattedText/nodes_rts.ts b/src/client/views/nodes/formattedText/nodes_rts.ts
index f83cff9b9..68c6df875 100644
--- a/src/client/views/nodes/formattedText/nodes_rts.ts
+++ b/src/client/views/nodes/formattedText/nodes_rts.ts
@@ -310,9 +310,9 @@ export const nodes: { [index: string]: NodeSpec } = {
}],
toDOM(node: any) {
const map = node.attrs.bulletStyle ? node.attrs.mapStyle + node.attrs.bulletStyle : "";
- return node.attrs.visibility ?
- ["li", { class: `${map}`, "data-mapStyle": node.attrs.mapStyle, "data-bulletStyle": node.attrs.bulletStyle }, 0] :
- ["li", { class: `${map}`, "data-mapStyle": node.attrs.mapStyle, "data-bulletStyle": node.attrs.bulletStyle }, `${node.firstChild?.textContent}...`];
+ return ["li", { class: `${map}`, "data-mapStyle": node.attrs.mapStyle, "data-bulletStyle": node.attrs.bulletStyle }, node.attrs.visibility ? 0 :
+ ["span", { style: 'position: relative; width: 100%; height: 1.5em; overflow: hidden; display: inline-block; text-overflow: ellipsis; white-space: pre' },
+ `${node.firstChild?.textContent}...`]];
}
},
}; \ No newline at end of file