Coder Social home page Coder Social logo

Long post titles on the "Top content by pageviews" section of Audience tile occupies multiple line instead of sticking to single line with ellipses about site-kit-wp HOT 11 CLOSED

kuasha420 avatar kuasha420 commented on August 29, 2024
Long post titles on the "Top content by pageviews" section of Audience tile occupies multiple line instead of sticking to single line with ellipses

from site-kit-wp.

Comments (11)

ivonac4 avatar ivonac4 commented on August 29, 2024

@ankitrox could you add the estimate to this task so Tom can review estimate together with IBs? Thank you!

from site-kit-wp.

aaemnnosttv avatar aaemnnosttv commented on August 29, 2024

Thanks @ankitrox!

  • add min-width: 0 this is necessary in order for text-overflow to work.

Can you be more specific about where this would be needed similar to how you did for the other change?

  • Width needs to be adjusted according to devices. Above is just an example with 250px.

This sounds like we're calling for styling different widths explicitly at different breakpoints, no? It should be possible to do without an explicit width. Have a look at other instances of text-overflow: ellipsis in our styles. If not, please clarify what you mean there.

from site-kit-wp.

ankitrox avatar ankitrox commented on August 29, 2024

Thank you for reviewing the IB @aaemnnosttv

I have revised the IB as per your suggestion to add min width to googlesitekit-audience-segmentation-tile-metric__container and the .googlesitekit-cta-link, also added the relevant links for the reference.

Assigning to you for re-review.

Thanks

from site-kit-wp.

aaemnnosttv avatar aaemnnosttv commented on August 29, 2024

Great, thanks @ankitrox !

IB ✅

from site-kit-wp.

techanvil avatar techanvil commented on August 29, 2024

Hey @ankitrox, please can you add a QAB for this one?

from site-kit-wp.

ankitrox avatar ankitrox commented on August 29, 2024

Hi @techanvil ,

I have added the QAB. As we have already updated the storybook for long title, I have added an additional step (alongside storybook) to modify the other post titles using browser inspector so that long post titles are trimmed with ellipsis.

Thanks

from site-kit-wp.

techanvil avatar techanvil commented on August 29, 2024

Thanks @ankitrox!

from site-kit-wp.

kelvinballoo avatar kelvinballoo commented on August 29, 2024

QA Update ❌

I tested this and it's looking good overall:

  • Long "Top content" post titles is not wrapping to a second line. ✅

  • When editing the other post titles under Top content by pageviews using browser inspector to make them too long, the titles are trimmed with ellipsis in the end. ✅

    Screenshot 2024-05-21 at 11 56 44
  • User count and title should be separated and clearly visible without overlap. ✅

The only part failing is the spacing between the ellipsis and the count.
It should be 30px instead of 16px as per the following details:

Current implementation is at 16px: Screenshot 2024-05-20 at 18 28 12

In figma, it's 30px:
Screenshot 2024-05-21 at 11 45 15

from site-kit-wp.

ankitrox avatar ankitrox commented on August 29, 2024

Thank you @kelvinballoo for the QA.

I have created a new PR #8748 to fix the margin issue. Moving this to CR.

from site-kit-wp.

techanvil avatar techanvil commented on August 29, 2024

Back to you for another pass, @kelvinballoo!

from site-kit-wp.

kelvinballoo avatar kelvinballoo commented on August 29, 2024

QA update ✅

Retested and looking good at 30px:

Screenshot 2024-05-24 at 17 53 20

Moving ticket to approval.

from site-kit-wp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.