The Bug
The name of the "Hero of the Village" status effect is too long to fit into the effect box in the inventory. This is also an issue with other status effects with specific amounts of levels.
Steps to Reproduce
Grant yourself a potion effect that has a long name:
/effect give @s minecraft:water_breathing 60 7
Open your inventory and look at the potion UI
❌ The potion name appears outside of its box
Observed Behavior
Long potion effect names can appear outside of potion UI boxes.
Linked issues
is duplicated by 9
Attachments
Comments 25
Can confirm in 20w51a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 1.16.5 and 21w08b.
Can confirm in 1.19.1.
Can confirm in 1.19.3

Present in 1.19.4.

Can confirm in 24w14a. Not only it causes issues in the source language, but it's also a real annoyance for translations. For example, "Raid Omen" should be translated in Italian as "Malaugurio dell'incursione", in order to be consistent with already used translations, but that is way too long for the tiny effect box.

Relates to MC-273502
Not really, those are two completely separate GUIs.