Repository navigation
Keep Browse identifiers on one line and widen title columns #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
93c815f
800fae1
3a2e4ae
892c179
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -348,7 +348,19 @@ tr.shown td.details-control .study-details::before { transform: rotate(90deg); } | |||||||
| /* Browse mobile */ | ||||||||
| .browse-desktop { display: block; overflow-x: auto; } | ||||||||
| .browse-desktop #flora-table { table-layout: fixed; } | ||||||||
| .browse-desktop #flora-table td, .browse-desktop #flora-table th { word-wrap: break-word; overflow-wrap: anywhere; } | ||||||||
| /* Text wraps between words; identifiers stay on one line and are shortened | ||||||||
| with an ellipsis (full value in the link, its tooltip and the evidence row). */ | ||||||||
| .browse-desktop #flora-table td, .browse-desktop #flora-table th { overflow-wrap: break-word; } | ||||||||
| /* Narrow desktop widths: the short Type and outcome labels hyphenate instead of breaking mid-syllable. */ | ||||||||
| .browse-desktop #flora-table td.type-cell, .browse-desktop #flora-table .badge { -webkit-hyphens: auto; hyphens: auto; } | ||||||||
| .browse-desktop #flora-table th { overflow-wrap: normal; } | ||||||||
| .browse-desktop #flora-table td.link-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Prompt for AI agents
Suggested change
|
||||||||
| /* The link itself carries the ellipsis so its focus ring can sit inside the clipped cell. */ | ||||||||
| .browse-desktop #flora-table td.link-cell a { display: block; overflow: hidden; text-overflow: ellipsis; } | ||||||||
| .browse-desktop #flora-table td.link-cell a:focus-visible { outline-offset: -3px; } | ||||||||
| /* The expanded evidence row shows full URLs and DOIs; let them wrap anywhere. */ | ||||||||
| .browse-desktop #flora-table .detail-row { overflow-wrap: anywhere; } | ||||||||
| .browse-desktop #flora-table .detail-grid > * { min-width: 0; } | ||||||||
| .browse-desktop #flora-table .badge { display: inline-block; max-width: 100%; white-space: normal; word-break: break-word; text-align: left; line-height: 1.3; } | ||||||||
| .browse-mobile { display: none; } | ||||||||
| .browse-mobile-search { margin-bottom: 1rem; } | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Replacing
overflow-wrap: anywherewithbreak-wordremoves the intrinsic (min-content) size reduction for long unbreakable values. The expanded evidence row lives inside#flora-table td, and its.detail-gridusesminmax(300px, 1fr), so a long full report URL/DOI can force the card wider than the fixed-layout cell at narrow desktop widths and overflow the table. Keepanywherefortd(the nowrap link-cells are unaffected by it).Prompt for AI agents