Fixed minor issues.

* highlighted cells not correctly rendered
* text selection not correctly working
This commit is contained in:
2026-03-15 18:45:55 +01:00
parent 0c9c8bc7fa
commit 0951680466
2 changed files with 4 additions and 4 deletions

View File

@@ -794,7 +794,7 @@ class DataGrid(MultipleInstance):
res.append(Span(value_str[:index], cls=f"{css_class}"))
res.append(Span(value_str[index:index + len_keyword], cls="dt2-highlight-1"))
if index + len_keyword < len(value_str):
res.append(Span(value_str[index + len_keyword:], cls=f"{css_class}"))
res.append(Span(value_str[index + len_keyword:]))
return Span(*res, cls=f"{css_class} truncate", style=style) if len(res) > 1 else res[0]