(str, max = 40)
| 462 | } |
| 463 | |
| 464 | function _trimLabel(str, max = 40) { |
| 465 | if (!str) return ""; |
| 466 | const s = String(str); |
| 467 | if (s.length <= max) return s; |
| 468 | return s.slice(0, max - 1) + "…"; |
| 469 | } |
| 470 | |
| 471 | // helper to repaint one strip item quickly |
| 472 | function repaintStripIcon(folder) { |
no outgoing calls
no test coverage detected