[Task]: Truncate add-on name in new devhub add-on cards

Open
#16,625 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
frontend

Research direction

The work is on the add-on cards on the new devhub landing page, so start by finding the card component there and how it renders the add-on name next to the Manage button. Check how a long name and a longer localized button label change the card's width and height. Done means cards keep a consistent size, long names are truncated, and the Manage button still fits in the longer translations. The issue has no acceptance criteria yet, so confirm the expected behaviour with the maintainers first.

Written by the indexing model from the issue text.

Description

Description

Design calls for the width and height of the add-on cards shown in new devhub landing page to stay consistent, truncating add-on names when necessary to achieve that.

We should explore how to implement that, and how translations would later play a role here (since the "Manage" button is going to get potentially larger in some locales)

Acceptance Criteria
  • item 1

┆Issue is synchronized with this Jira Task

Dominant language
Makefile
Stars
135
Forks
52
Avg merge
6d 18h
Merged PRs (30d)
7

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/addons

All issues in mozilla/addons

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.