Commit 655fa48
authored
logview_new: fixed copying table data (#2500)
@mattkur had pointed out that when copying several line of table data
from the log viewer it didn't place nicely with teams.
Investigated the root cause for this and found that the virtualized
table was rendering each row as a separate table. Turns out when we
copy, the browser will also copy the HTML formatting as part of the rich
text which gets pasted in teams. Because teams will then treat these as
separate tables, the paste will appear funky.
Moved the "table" tag out of the virtualizer so that each row is just a
"tr" now. Pasting in teams seems to work now test paste looks like:
<img width="1042" height="586" alt="image"
src="https://github.com/user-attachments/assets/5b98af0a-2848-4845-9162-50de5ab795f2"
/>
Also increased overscan for the log viewer to 300 rows. While you still
can't copy all the data in one go, copying up to 300 rows at once should
be sufficient1 parent 598f2a4 commit 655fa48
File tree
5 files changed
+166
-167
lines changed- petri/logview_new
- dist
- assets
- src
5 files changed
+166
-167
lines changed
0 commit comments