Skip to content

fix: let commit message wrap instead of truncating with ellipsis#1189

Open
alpurkan17 wants to merge 2 commits into
entrius:testfrom
alpurkan17:fix/commit-message-wrapping
Open

fix: let commit message wrap instead of truncating with ellipsis#1189
alpurkan17 wants to merge 2 commits into
entrius:testfrom
alpurkan17:fix/commit-message-wrapping

Conversation

@alpurkan17
Copy link
Copy Markdown

Summary

The commit message bar in RepositoryCodeBrowser used nowrap + overflow: hidden + textOverflow: ellipsis + maxWidth: 600px, which truncated long commit subjects with no way to read the rest.

Changes

  • Removed truncation styles from the message Typography
  • Added wordBreak: 'break-word' for long tokens/URLs
  • Replaced overflow: hidden with minWidth: 0 on the flex parent for proper shrink behavior

Related Issues

Closes #1136

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

Checklist

  • Tested against the test API
  • npm run format and npm run lint:fix have been run
  • npm run build passes

alpurkan17 added 2 commits May 14, 2026 08:19
…1054)

## Summary
Add ClearSearchAdornment (clear button) to the Score Breakdown
search field on the Miner Overview tab, matching the existing
pattern used in all other search inputs across the app.

## Root Cause
The DebouncedSearchInput in MinerScoreBreakdown renders a
TextField with startAdornment (search icon) but no endAdornment,
unlike MinerPRsTable, MinerOpenDiscoveryIssuesByRepo, IssuesList,
WatchlistPage, TopRepositoriesTable, and MinerRepositoriesTable
which all use ClearSearchAdornment.

## Impact
Users on the Score Breakdown view had no one-click way to clear
their search query — an inconsistency with all other searchable
views in the app.

## Related Issues
Fixes entrius#1054

## Test plan
### How to verify
- Open any miner profile with PRs in score breakdown
- Type in the search field — a clear (X) button should appear
- Click clear — search text should be cleared and results reset
- Existing tests pass (ClearSearchAdornment already tested)

### Edge cases
- Empty search: clear button hidden (visible={Boolean(draftValue)})
- Mobile: clear button works same as desktop

### Post-merge
- All app search fields now have consistent clear behavior
Removes nowrap/overflow/textOverflow/maxWidth constraints so long
commit subjects wrap naturally. Adds wordBreak: break-word for
long tokens. Keeps layout stable with minWidth: 0 on flex parent.
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repository Code tab — commit message truncation & GitHub parity

1 participant