MediaWiki talk:Gadget-ReferenceTooltips.js: Difference between revisions

Content deleted Content added
Update request 9 July 2024: reply to Jacobolus
Line 226:
::{{tq|I think it was previously smaller?}}<br>It was 13px – a bit bigger than the font size in Monobook.{{pb}}{{tq|1=Some footnotes with wider content get cut off horizontally.}}<br>Can you give an example? [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 06:54, 10 July 2024 (UTC)
::I assume this is to be fixed by appending the WindowManager to <code>OO.ui.getTeleportTarget()</code> instead of {{tag|body|o}}? (See [[phab:T348286]].) [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]]) 06:55, 10 July 2024 (UTC)
:::Oh right, using <code>#mw-teleport-target</code> could actually be a better idea than hardcoding anything (note that reference tooltips are not OOUI-based).{{pb}}Let's see. Before the change the tooltip was 13px across all skins. We want to make it bigger where the body font size is bigger. <code>#mw-teleport-target</code> is:
:::* strictly the body size (14px, 16px, or 20px) in Vector, Vector 2022, and Minerva
:::* 14.44px against 15.2px body size in Timeless
:::* 12.8px against 12.7px body size in Monobook
:::{{pb}}Here, I'm only afraid that making the tooltip smaller than the body text in Monobook wouldn't be a good idea as this would be hard to read. So, we may still hardcode the size for Monobook as a special case. An alternative would be to have the tooltip font size just equal to the font size, like in Page Previews and Reference Previews:
:::[[File:English Wikipedia DeLancey W. Gill 2024-07-10 07-21-45.png|frameless|none]] [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 07:25, 10 July 2024 (UTC)
::{{tq|1=Footnote boxes are the same width as before but now much less text fits on each line}}<br>This actually made me think that probably we should also made the tooltip wider when the user opted for the large font size in ''Vector''. [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 06:57, 10 July 2024 (UTC)