Page MenuHomePhabricator

Disable hyphens not possible on Vector skin in Safari browser
Closed, InvalidPublicFeature

Description

See Word breaking and hyphenation is overly aggressive.

  1. Enable Vector and disable "Use Legacy Vector" at the preferences from any Wikimedia project, e.g. Wikipedia, while logged in.
  2. Enter a long term with long words in the search box at the top of pages, e.g. supercalifragilisticexpialidocious pseudopseudohypoparathyroidism antidisestablishmentarianism honorificabilitudinitatibus
  3. Look for a box right below the search box saying "Search for pages containing", followed by the search term. It is multiple lines when Legacy Vector is disabled. Your browser will probably break some long words into two lines and place a hyphen at the end of the first line.
  4. The box has the class wvui-typeahead-search__suggestions__footer__text__query

Words breaking with a hyphen which is unavoidable in Safari (on Mac) if this is added to one's custom CSS:

.wvui-typeahead-search__suggestions__footer__text__query {
-webkit-hyphens: none !important;
-ms-hyphens: none !important;
hyphens: none !important;
}

All three are sometimes recommended, e.g. at W3 Schools, presumably to cover more circumstances. One only needs hyphens: none !important to avoid the word breaks in Firefox and Google Chrome

My suggestion is

  • to fix the breaking issue on Safari.
  • to create some sort of horizontal scroll control if the word could not be displayed in one line.

This issue has been already raised on the technical village pump and another admin redirected me to here.

Event Timeline

Look for a box right below the search box saying "Search for pages containing",

I fail to find wvui-typeahead-search__suggestions__footer__text__query in the source, or Search for pages containing anywhere (but I am not running Safari) on https://en.wikipedia.org/w/index.php?title=Special:Search&search=supercalifragilisticexpialidocious+pseudopseudohypoparathyroidism+antidisestablishmentarianism+honorificabilitudinitatibus&uselang=en , after I have set "Vector (2022)" on https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-rendering .
@Mahmudmasri: Is this still an issue that should be kept open?

Volker_E subscribed.

WVUI and its TypeaheadSearch has been replaced by Codex in the meantime. Given no further activity closing as “invalid”.

  NODES
admin 1
Note 1
Project 4