Handle empty titles in content suggestions |
||
Issue descriptionIt is possible to have suggestions without title nor description (e.g. bookmarks without title synced from desktop). In that case, we currently see a card with lots of whitespace and just the attribution line (see screenshot). We should do something better.
,
Apr 27 2017
The UI does not do anything special with titles, it just sets what the backend returns. And according to the bookmarks provider implementation[1] the title is just whatever the user set it to, which no fallback. An option to be consistent with desktop (which just removes the title[2]), would be to just remove the empty space. Or as you said, the backend could fallback to the URL when the title is empty. And FYI, on mobile it's currently not possible to create/edit a bookmark and set an empty title. The UI blocks that. [1]: https://cs.chromium.org/chromium/src/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc?sq=package:chromium&l=278&dr=C [2]: https://cdn.ghacks.net/wp-content/uploads/2013/04/chrome-bookmarks-toolbar-tips.jpg
,
Apr 28 2017
I played around with it and got it to this. Let me know what you think. Screenshot is on Nexus 5.
,
Apr 28 2017
Thanks folks! This is definitely an improvement. That said - ideally this case wouldn't happen (we should prioritize content with more complete sets of information). Can you help me understand how we're ending up with these states, and whether they will go away in the Chrome Home (no bookmarks) world?
,
Apr 28 2017
This happens when you set a bookmark from Chrome on Desktop and remove the title so that only the icon is shown in the bookmarks tab as in the screenshot below. When this bookmark gets transferred on your phone, we get this case :)
,
Apr 28 2017
Thanks Galina! This seems like a great solution for the case you described. :)
,
Apr 28 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e04941a0e5810c69846b52f664efae23431b1458 commit e04941a0e5810c69846b52f664efae23431b1458 Author: galinap <galinap@google.com> Date: Fri Apr 28 15:29:49 2017 Removed whitespace when no headline is set in a snippet article. Screenshots at https://drive.google.com/drive/folders/0B7eRCSITD4qmelN0aEFMQXNwNTA?usp=sharing BUG= 716022 Review-Url: https://codereview.chromium.org/2849523004 Cr-Commit-Position: refs/heads/master@{#468007} [modify] https://crrev.com/e04941a0e5810c69846b52f664efae23431b1458/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java
,
May 2 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by treib@chromium.org
, Apr 27 2017