aboutsummaryrefslogtreecommitdiff
path: root/src/client/util
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-08-29 01:14:18 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-08-29 01:14:18 -0400
commit18cc66aaa90c5054268eac9520a963867c0c2f8e (patch)
tree5c64b5404388cdc7cf0b7e54f3c81268b170350b /src/client/util
parent24f87285011b4cff8518a12442410a99f0a97cb8 (diff)
fixed expand/collapse of text. added user tooltip
Diffstat (limited to 'src/client/util')
-rw-r--r--src/client/util/RichTextSchema.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index f567d803e..ee0c0870a 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -343,7 +343,10 @@ export const marks: { [index: string]: MarkSpec } = {
let hideUsers = node.attrs.hide_users;
let hidden = hideUsers.indexOf(node.attrs.userid) !== -1 || (hideUsers.length === 0 && node.attrs.userid !== Doc.CurrentUserEmail);
return hidden ?
- ['span', { class: node.attrs.opened ? "userMarkOpen" : "userMark" }, 0] :
+ (node.attrs.opened ?
+ ['span', { class: "userMarkOpen" }, 0] :
+ ['span', { class: "userMark" }, ['span', { style: "font-size:2" }, 0]]
+ ) :
['span', 0];
}
},