Two reference in preview take a lot of space. How do I hide it?

How to hide reference in preview?
image
As you see, there is two reference there. It takes a lot of space. Is there any way I can hide it from the preview? Thank you!

1 Like

Not that I am aware of, but feel free to add onto this FR.

1 Like

Can someone write a CSS to hide it? I think a lot of people need it. Thank you!

1 Like

Sorry, I had a lot of work to do and forgot to send this code to you

#document-hover-preview__popup .portal-tree-node-box .portal-tree-transient-node-box,
#document-hover-preview__popup .hierarchy-editor__search-portal-section,
#document-hover-preview__popup #show-embedded-search-button {
	display: none;
}

Report me any bugs you find

3 Likes

Oh, thank you! However, this hides the definition also. Strange.
After:
Screenshot 2021-12-24 13.05.27
Before:

2 Likes

I know why it happens to me now. What I put inside the rem is a portal (not a search portal).

2 Likes

Good catch…
This portal is content of Preview.
I have made it back.

1 Like

It works well this time. Thank you!

1 Like

Thank you - this is very helpful!

1 Like

In the new version, the code doesn’t work anymore. It’s still showing references and text references. Can you please help us write a new code to hide it? Thank you!

1 Like

New Custom CSS for RemNote 1.7

#document-hover-preview__popup .tree-node--automatic-search-portal-header,
#document-hover-preview__popup .portal-tree-node-box--no-margin-left,
#document-hover-preview__popup .portal-tree-node-box--enable-buttons,
#document-hover-preview__popup .hierarchy-editor__search-portal-section  {
	display: none;
}

3 Likes

Sorry for not replying, I didn’t look at the forum for almost a month. The code works well, thank you a lot!

1 Like