CSS styling the shown labels in the annotator

hi @jrens!

Thanks for your question and welcome to the Prodigy community :wave:

Check out this post:

Essentially, you could try adding a grid:

.prodigy-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

I ran a quick demo to check. I used only 8 labels so, I used 2 columns, but you can try for 4 if you have enough space.
nyt_text_dedup.jsonl (18.5 KB)

PRODIGY_CONFIG_OVERRIDES='{"global_css": ".prodigy-options {display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 20px;}"}' python3 -m prodigy textcat.manual textcat_ex data/nyt_text_dedup.jsonl --label TECH,BUSINESS,GLOBAL_NEWS,SPORTS,LEISURE,COOKING,OPINION,LOCAL_NEWS

If you use 4 or more columns, you may also need to change max-width in .prodigy-container to avoid your choices may overextending the container. Let me know if you have questions.

Let me know if this works!