stephenmk / Jitendex

A free, offline, and openly licensed Japanese-to-English dictionary. Updates weekly!
https://jitendex.org
Creative Commons Attribution Share Alike 4.0 International
248 stars 2 forks source link

Hide bullets in Yomitan glossaries with only one gloss #63

Closed stephenmk closed 7 months ago

stephenmk commented 7 months ago

For example, the glosses for senses ③⑤⑧⑨⑩⑪ in the entry for もと do not need bullets.

Now that Yomitan supports the padding-left style, I can implement this effect cleanly. I've tried to do something like this in the past by changing these lists to div or span elements when they only contained one gloss, but that caused some issues with yomichan's "compact glossaries" mode.

Before After
stephenmk commented 7 months ago

There are some situations where this looks odd (senses ① and ⑤ of 読む, for example). But I think these situations are fewer than the situations where having the bullet looks odd.

Though if I index some new example sentences to these senses, it probably won't look so bad.

yomu

stephenmk commented 7 months ago

Implemented in version 4.2