Since the manual ner present the sentences by tokens, and I cannot copy the sentence to the clipboard. So, I insert a custom HTML block to the task. But the whitespaces between my button and the tokens are too large. How to set the custom CSS to remove the whitespaces?
I think this might be the padding around the annotation card? If you open your browser's developer tools and hover over the section, it'll show you the container, its class name. and where the spacing comes from. For example, like this:
If it's the .prodigy-content, you could probably do something like .prodigy-content:last-child { padding-top: 0}. Or even a negative margin, if you want to move it further up – like margin-top: -20px.
If I disable the white-space property from c01151 class name , the whitespaces will disappear. However, I don't know how to disable it from custom setting. It seems that the css class name were generated from javascript file.
That container also has the class .prodigy-content, though, so you should be able to override it via that class as well (the auto-generated class names are generated at build time so they should be consistent within the same version of Prodigy, too).
Alternatively: the spacing here is caused by the fact that newlines \n are rendered, so you could also just remove all leading newlines from your HTML template.
I set .prodigy-content{white-space:normal;} , it finally removed the whitespaces. However, I cannot double click to assign the entity name any more. It just selected all the tokens.
The following are my hmtl & javascript code. There are actually no newlines \n in my template.