mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
added width buffer for tags display
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user