@d86e/hive-panel 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/panel.js +4 -3
package/package.json
CHANGED
package/public/panel.js
CHANGED
|
@@ -7452,7 +7452,6 @@ function renderMarkdownInto(doc, host, source) {
|
|
|
7452
7452
|
|
|
7453
7453
|
const LANE_ROW_HEIGHT = 28;
|
|
7454
7454
|
const LANE_ROW_BUFFER = 4;
|
|
7455
|
-
const LANE_MAX_ROWS = 20;
|
|
7456
7455
|
const LANE_VIEWPORT_FALLBACK = 480;
|
|
7457
7456
|
const LANE_DATA_LIMIT = 5000;
|
|
7458
7457
|
const LANE_PAGE_SIZE = 200;
|
|
@@ -7587,10 +7586,12 @@ function renderMarkdownInto(doc, host, source) {
|
|
|
7587
7586
|
const viewport = laneViewportHeight(state);
|
|
7588
7587
|
state.lastViewportHeight = viewport;
|
|
7589
7588
|
const scrollTop = Number(state.list.scrollTop) || 0;
|
|
7589
|
+
const visibleRows = Math.max(1, Math.ceil(viewport / row));
|
|
7590
|
+
const maxRows = visibleRows + LANE_ROW_BUFFER * 2;
|
|
7590
7591
|
const start = Math.max(0, Math.floor(scrollTop / row) - LANE_ROW_BUFFER);
|
|
7591
7592
|
let end = Math.min(total, Math.ceil((scrollTop + viewport) / row) + LANE_ROW_BUFFER);
|
|
7592
|
-
if (end - start >
|
|
7593
|
-
const height = total === 0 ? 0 : total * row
|
|
7593
|
+
if (end - start > maxRows) end = start + maxRows;
|
|
7594
|
+
const height = total === 0 ? 0 : total * row;
|
|
7594
7595
|
setStyle(state.inner, "height", String(height) + "px");
|
|
7595
7596
|
|
|
7596
7597
|
const next = new Map();
|