MCPcopy Create free account
hub / github.com/error311/FileRise / _trimLabel

Function _trimLabel

public/js/fileListView.js:464–469  ·  view source on GitHub ↗
(str, max = 40)

Source from the content-addressed store, hash-verified

462}
463
464function _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
472function repaintStripIcon(folder) {

Callers 2

fillFileSnippetFunction · 0.85
fillHoverPreviewForRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected