diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-10 18:07:15 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-10 18:07:15 +0200 |
| commit | c9401e45433ea45b46f9a8faf1e7e537e4683244 (patch) | |
| tree | c2fabb1942a257f64b4be0c3ab5a5d5bff717d25 /public | |
| parent | ed9e846d1d85fa326389982e16bbc8799f2001c0 (diff) | |
Fix rrule/url column overflow on events#index
Long RRULEs previously overflowed their column with no wrap point;
now escaped and rendered with a <wbr> after each semicolon, so a
long rule wraps at a clause boundary instead of running off the
table. Deliberately not truncated -- a cut-off RRULE's trailing
clause (BYDAY, BYMONTH, etc.) is usually the most specific part.
The url column is now a real link, truncated with an ellipsis at a
fixed width -- deliberately no tooltip, since hovering a real link
already shows the full address in the browser's own status bar.
rrule_with_break_opportunities splits on the raw string's own
semicolons before escaping each piece, not after -- escaping first
and searching the result for semicolons also matches the ones inside
</> entities, corrupting anything containing a literal < or >.
Diffstat (limited to 'public')
| -rw-r--r-- | public/stylesheets/admin.css | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 1a81728..4723f50 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -519,6 +519,21 @@ table.revisions_table tr:hover { | |||
| 519 | background-color: #f1f1f1; | 519 | background-color: #f1f1f1; |
| 520 | } | 520 | } |
| 521 | 521 | ||
| 522 | .events_table .rrule_text { | ||
| 523 | display: inline-block; | ||
| 524 | max-width: 300px; | ||
| 525 | overflow-wrap: break-word; | ||
| 526 | } | ||
| 527 | |||
| 528 | .events_table .truncate { | ||
| 529 | display: inline-block; | ||
| 530 | max-width: 200px; | ||
| 531 | overflow: hidden; | ||
| 532 | text-overflow: ellipsis; | ||
| 533 | white-space: nowrap; | ||
| 534 | vertical-align: bottom; | ||
| 535 | } | ||
| 536 | |||
| 522 | #diffview del { | 537 | #diffview del { |
| 523 | background: #ffd7d5; | 538 | background: #ffd7d5; |
| 524 | color: #82071e; | 539 | color: #82071e; |
