Skip to content

fix: wrap long resource names when truncation is disabled - #4381

Merged
JammingBen merged 1 commit into
mainfrom
fix/resource-name-wrap-long-names
Nov 9, 2026
Merged

JammingBen merged 1 commit into
mainfrom
fix/resource-name-wrap-long-names

Conversation

@JammingBen

Copy link
Copy Markdown
Member

Description

With truncation disabled, ResourceName didn't wrap long names that have no break opportunities (e.g. PXL_20260703_163401420.jpg). The name overflowed its container instead. The basename used break-normal since the Tailwind migration, which isn't equivalent to the old oc-text-break.

  • Use wrap-anywhere on the basename, so it wraps where needed and shrinks properly inside the flex container
  • Replace the snapshot test for this mode with explicit assertions

Related Issue

@JammingBen JammingBen self-assigned this Nov 9, 2026
@JammingBen
JammingBen merged commit 4d4800c into main Nov 9, 2026
29 checks passed
@JammingBen
JammingBen deleted the fix/resource-name-wrap-long-names branch November 9, 2026 13:33
@openclouders openclouders mentioned this pull request Nov 9, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource name does not wrap long names when truncation is disabled

2 participants