From b235037dd3ccf92ba31b11fbcfef7500fa6d36a0 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 17 Sep 2022 20:17:24 +0200 Subject: [PATCH] 5x faster rendering of huge tagsets --- copyparty/web/browser.css | 1 + copyparty/web/browser.js | 1 + 2 files changed, 2 insertions(+) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 3e7b6531..ea4c2086 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1592,6 +1592,7 @@ html.y #tree.nowrap .ntree a+a:hover { width: 1px; height: 1px; overflow: hidden; + white-space: nowrap; } #blazy { text-align: center; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index b9d72d9c..50648f76 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -5184,6 +5184,7 @@ var treectl = (function () { r.nvis = n; ebi('lazy').innerHTML = ''; ebi('wrap').style.opacity = 0.4; + document.documentElement.scrollLeft = 0; setTimeout(function () { r.gentab(get_evpath(), r.lsc); ebi('wrap').style.opacity = 'unset';