New issue
Advanced search Search tips

Issue 900278 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 8
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug


Show other hotlists

Hotlists containing this issue:
Launcher-Polish


Sign in to add a comment

Long app shortcut name truncated awkwardly

Project Member Reported by kaznacheev@chromium.org, Oct 30

Issue description

Chrome Version: 
OS: ChromeOS

What steps will reproduce the problem?
(1) Set enable-app-shortcut-shortcut-search
(2) Have GMail Android app installed, long tap on its icon in launcher or shelf, make sure that you see a shortcut with a specific email. If not, emailing someone (such as yourself) helps.
(3) Search for that email in the launcher
(4) Observe the GMail app shortcut in the search results

What is the expected result?
Long email is readable

What happens instead?
Email is truncated if it is long enough (see screenshot)



Please use labels and text to provide additional information.

If this is a regression (i.e., worked before), please consider using the
bisect tool (https://www.chromium.org/developers/bisect-builds-py) to help
us identify the root cause and more rapidly triage the issue.

For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.


 
Screenshot 2018-10-30 at 11.33.15 AM.png
172 KB View Download
Shiba, please advise how to best solve this. Ellipsized text? Tooltip? Both?
Thanks!
Ellipsis makes sense here. 
Owner: kaznacheev@chromium.org
Status: Started (was: Assigned)
The name will break if it contains spaces, the same as app names.
I assume that most shortcut names will be relatively short words or phrases, and should fit into two lines with natural line breaks.

However in this particular case the shortcut name is an email, and it can be quite long and there are no spaces. This is not likely to be a common case, but it will be there for GMail.

It is very easy to allow mid-word line breaks (see attached screenshot), shall I do this?
Screenshot 2018-11-01 at 11.57.32 AM.png
202 KB View Download
Also, a sample screenshot of how overly long titles will be elided (I have artificially doubled all titles, inserting a space in between).
Screenshot 2018-11-01 at 12.33.56 PM.png
185 KB View Download
Owner: shibasheikh@chromium.org
Status: Assigned (was: Started)
Shiba, please advise
Labels: -M-72 -m-72 M-73
Bulk moving <p-1's to the next milestone because we branched to M-73.
Labels: -M-73 M-74
Yes to Comment 8
Labels: -M-74 M-73
Owner: kaznacheev@chromium.org
Status: Started (was: Assigned)
Project Member

Comment 16 by bugdroid1@chromium.org, Jan 8

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1b740da684bad1c11a4ebcbb0fe9a6daaa317457

commit 1b740da684bad1c11a4ebcbb0fe9a6daaa317457
Author: Vladislav Kaznacheev <kaznacheev@google.com>
Date: Tue Jan 08 22:10:51 2019

Allow mid-word breaks in long search result titles

Bug:  900278 
Test: manual, see bug
Change-Id: Ic6b94576aae51743ef1399c22395e126505148de
Reviewed-on: https://chromium-review.googlesource.com/c/1401069
Reviewed-by: Alex Newcomer <newcomer@chromium.org>
Commit-Queue: Vladislav Kaznacheev <kaznacheev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#620899}
[modify] https://crrev.com/1b740da684bad1c11a4ebcbb0fe9a6daaa317457/ash/app_list/views/search_result_tile_item_view.cc

Status: Fixed (was: Started)

Sign in to add a comment