added width buffer for tags display

This commit is contained in:
Ivymaster
2026-06-29 09:41:52 +02:00
parent db5339e4a5
commit 48f07eb3ca
+2 -1
View File
@@ -94,12 +94,13 @@ export function tagFormatter(cell, tagComponent, onRendered) {
return;
}
let widthBuffer = 15;
maxVisibleTags = parsedTags.length;
renderTags();
while (
maxVisibleTags > 0 &&
container.scrollWidth > container.clientWidth
container.scrollWidth > (container.clientWidth + widthBuffer)
) {
maxVisibleTags--;
renderTags();