Steps to replicate the issue (include links if applicable):
- Open any WMF-hosted wiki like https://zh.wikipedia.org;
- Search anything that included in the article.
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.