Commit 1393ec6
authored
fix(timeline): truncate long synced bucket names in sidebar (#757)
* fix(timeline): truncate long synced bucket names in sidebar (#682)
Synced bucket names can exceed 137+ characters, making the timeline
sidebar unusable on smaller screens.
Three fixes:
- CSS text-overflow ellipsis as fallback for any long label
- Abbreviate synced names: show 'watcher-name (synced from host)'
instead of full 'watcher_localhost-synced-from-remotehost'
- Add title tooltip showing full bucket ID on hover
- Fix: use group.id instead of group.content when looking up bucket
ID for event editing (content now contains display HTML, not raw ID)
* fix(timeline): add proper HTML escaping in abbreviateBucketName to prevent XSS1 parent fc5bdd9 commit 1393ec6
1 file changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
224 | 231 | | |
225 | 232 | | |
226 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
227 | 254 | | |
228 | 255 | | |
229 | 256 | | |
| |||
248 | 275 | | |
249 | 276 | | |
250 | 277 | | |
251 | | - | |
| 278 | + | |
| 279 | + | |
252 | 280 | | |
253 | 281 | | |
254 | 282 | | |
| |||
0 commit comments