Page MenuHomePhabricator

Description of a Sense overlaps its edit-button with fontsize 20
Open, Needs TriagePublic

Assigned To
None
Authored By
Michael
May 14 2019, 9:58 AM
Referenced Files
F59744194: Bildschirmfoto_2025-05-07_14-54-54.png
May 7 2025, 1:08 PM
F59723970: Bildschirmfoto_2025-05-06_20-38-11.png
May 7 2025, 1:08 PM
F34053011: 18em.png
Jan 28 2021, 12:05 PM
F34053013: maxwidth.png
Jan 28 2021, 12:05 PM
F29050544: image.png
May 14 2019, 9:58 AM

Description

Problem:
With a default font-size of 20px the description of a sense can overlay the edit button:

image.png (1,190×434 px, 37 KB)

Background:
People with limited eyesight often increase the default fontsize of their browser. Webpages should remain usable with moderately increased fontsize. OOUI aspires to remain well usable till a font-size of 28px.

Acceptance criteria:

  • The description of a sense does not overlap with the edit button even if the browser default font size is set to 28.

Event Timeline

To reproduce this, increase the font-size of the html element. The screenshots below are with the font-size set to 250%.

This appears to be because the box containing the edit link (.wikibase-toolbar-container) has a width of 18em, while the box containing the glosses (.wikibase-lexeme-sense-glosses) has a right margin of 252px. As soon as 18em is larger than 252px, the two boxes will overlap.

A couple of possible solutions:

Change the right margin to 18em:

18em.png (1,513×1,040 px, 84 KB)

Set a max-width of 252px on the edit link container:

maxwidth.png (1,513×735 px, 79 KB)

Since the wider the edit link container gets, the less space there is left for the gloss, I think the latter would make more sense.

This now happens without changing the font size:

Bildschirmfoto_2025-05-06_20-38-11.png (715×121 px, 10 KB)

It's even worse when changing the default to 20px:

Bildschirmfoto_2025-05-07_14-54-54.png (905×151 px, 13 KB)

(screenshots are of https://www.wikidata.org/wiki/Lexeme:L15917)