fix(sharings): keep the path label from clipping under a short name#3945
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughIn Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Gates Passed
3 Quality Gates Passed
See analysis details in CodeScene
Quality Gate Profile: The Bare Minimum
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
BundleMonFiles updated (1)
Unchanged files (19)
Total files change +28B 0% Groups updated (2)
Unchanged groups (1)
Final result: ✅ View report in BundleMon website ➡️ |
| return ( | ||
| <span title={infected ? t('antivirus.infectedFile') : title}> | ||
| <span | ||
| className={hidePath ? undefined : styles['fil-file-name-with-path']} |
There was a problem hiding this comment.
you don't need stylus file for that: you have .u-w-100 class
Problem
In the sharings list, the
/sharingslink shown under a shared drive's name gets clipped when the name is shorter than the link text (a one-letter share showed/sinstead of/sharings). cozy-ui'sFilenamestacks the name and the path label in a column that shrinks to the name's width, so a path wider than a short name is cut off.Solution
Let that column fill the name cell when a path is shown, so the path label uses the available width instead of being capped to the name. Long paths still truncate at the cell edge.
Summary by CodeRabbit