Bug Report: Trash: "Uber_for_dogs_pitchdeck.ppt" label overlaps the items next to it

Open Beginner friendly
#22,000 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, tailwindcss, typescript
Domain
frontend

Research direction

Read the figcaption in src/components/OSIcons/AppIcon.tsx and the fixed-width item cell in src/pages/trash/index.tsx. Reproduce the overlap on the trash page, then choose a wrapping fix that keeps the label within its cell. Verify that “Uber_for_dogs_pitchdeck.ppt” wraps without overlapping neighboring items.

Written by the indexing model from the issue text.

Description

Report

Image

URL: https://posthog.com/trash

In "Recently deleted", the "Uber_for_dogs_pitchdeck.ppt" label is wider than its grid cell. It overlaps "spicy.mov" and "Long Term Contract Template.docx".

To reproduce: open https://posthog.com/trash and look at the "Recently deleted" section.

Screenshot: to be attached.

Technical info

The name has no spaces, so the browser has no place to break the line. Underscores do not give a break point.

  • The label in AppLink (src/components/OSIcons/AppIcon.tsx, the figcaption near line 426) has no overflow-wrap rule.
  • The item cell on the trash page has a fixed width (w-28) in src/pages/trash/index.tsx.

"Long Term Contract Template.docx" is approximately the same length, but it wraps correctly because it has spaces.

Expected outcome, or solution

The label wraps inside its cell, like the other labels do.

Possible solutions (for the team to decide):

  • Add break-words or [overflow-wrap:anywhere] to the AppLink label. This changes a shared component, so it affects all desktop and explorer icons.
  • Rename the item to use spaces, for example "Uber for dogs pitchdeck.ppt". This changes only the trash page.
Dominant language
TypeScript
Stars
1.2k
Forks
952
Avg merge
1d 17h
Merged PRs (30d)
747

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • 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 PostHog/posthog.com

All issues in PostHog/posthog.com

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.