New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 625775 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Email to this user bounced
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

NTP snippets: Ellipsize long publisher names on cards

Project Member Reported by bauerb@chromium.org, Jul 5 2016

Issue description

At the moment we concatenate the publisher name with the date, which results in the whole string being ellipsized at the end if the publisher is very long. We should instead make sure that the publisher is ellipsized but the date stays full width.
 
Labels: -zine-mr-mile-mvp zine-client-v1
Labels: zine-16-07-11
Labels: zine-16-07-18

Comment 4 by peconn@chromium.org, Jul 19 2016

It may be a good idea to change from a single TextView that we format to '<publisher> - <timestamp>' to three separate TextViews. This would let Android take care of the ellipsis' and simplify a few other special cases (eg when the publisher is in a LTR language but the device is RTL).

Do make sure you test with an RTL layout.
Cc: mvanouwe...@chromium.org
Labels: zine-16-07-25
Propose to Rachel if we could right align the publisher date as this will massively simplify the code and remove the need for java to manipulate and pre render to measure if there is space

Comment 6 by fi...@chromium.org, Aug 1 2016

Owner: ----
Status: Available (was: Assigned)
Components: UI>Browser>NewTabPage
Labels: OS-Android

Comment 8 by fi...@chromium.org, Aug 16 2016

@mvanouwerkerk: What's the latest status here? Was this ever fixed? Or is it obsolete (I didn't check what the current behavior is)?
I looked into it with Nicole when she was working on this. I think we could fix this by subclassing a LinearLayout or something like that, but she wasn't very keen on that. That's the latest. I have never seen this problem with production data, it's just something that came up with artificially long strings. P3 seems about right.

Comment 10 by fi...@chromium.org, Aug 19 2016

Labels: -zine-client-v1 zine-client-ux-v1 zine-triaged
ok. sgtm.
What currently happens when we have a long publisher name?
Ah, scratch that - I see this noted at the top of the bug.

This is pretty non-ideal. Do we have an idea of how often it happens?
I've never seen this in the real world - it was just an edge case I thought of while making tests.
long-publisher.png
22.1 KB View Download
OK, thanks Pete. P3 seems good then.
Cc: -mvanouwe...@chromium.org

Comment 16 by dgn@chromium.org, Apr 4 2017

Labels: -Pri-3 Pri-2
Owner: galinap@google.com
Status: Assigned (was: Available)

Comment 18 by galinap@google.com, Apr 19 2017

Status: Fixed (was: Assigned)

Sign in to add a comment