Page MenuHomePhabricator

Line width of search results in Minerva too wide (due to mediawiki.special.search.styles hardcoding 50em width)
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Search results have text content line feeds that exceed the device screen width.

What should have happened instead?:
The text content of the search results will not exceed the width of the device screen in line feed position.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Can be reproduced at least on Internet Explorer 11 (simulate Windows Phone device on PC) and Chrome (including Chromium-based browser) 105.

Event Timeline

Aklapper renamed this task from The text content of search results is not automatically line feed on skin that support responsive web design. to zh.wikipedia.org search results do not linewrap on mobile skin.Sep 21 2022, 11:58 AM
Aklapper changed the task status from Open to Stalled.
Aklapper removed a project: Advanced-Search.

Hi @toorich, thanks for taking the time to report this! Please provide a full, clear, complete list, including all full URL/links and search terms as text, which allow someone else to reproduce the problem, without any interpretation. I cannot reproduce this, but I might not perform the correct steps.

Hi @toorich, thanks for taking the time to report this! Please provide a full, clear, complete list, including all full URL/links and search terms as text, which allow someone else to reproduce the problem, without any interpretation. I cannot reproduce this, but I might not perform the correct steps.

You can reproduce the problem by browsing this url on your smartphone:
https://zh.m.wikipedia.org/w/index.php?search=北京&title=Special:Search&profile=advanced&fulltext=1&ns0=1

Thank you, I can reproduce now.

The technical problem here is the CSS line

.mw-search-results-info,
.mw-search-results-container {
  width: 50em;
}

from mediawiki.special.search.styles being also applied on the Minerva skin

Aklapper renamed this task from zh.wikipedia.org search results do not linewrap on mobile skin to Line width of search results in Minerva too wide (due to mediawiki.special.search.styles hardcoding 50em width).Sep 21 2022, 5:14 PM

Thank you, I can reproduce now.

The technical problem here is the CSS line

.mw-search-results-info,
.mw-search-results-container {
  width: 50em;
}

from mediawiki.special.search.styles being also applied on the Minerva skin

But it seems also can be repoduced on Timeless Skin.

toorich changed the task status from Stalled to Open.Sep 21 2022, 5:36 PM
TheDJ claimed this task.
TheDJ subscribed.

This has been solved in the mean time.