5.4.0
Restructure New Journal entries Colour tabs update with wind
This commit is contained in:
@@ -140,11 +140,10 @@ export function useTableScroll({
|
||||
const bodyScroll = bodyScrollRef.current;
|
||||
if (!bodyTable || !bodyScroll) return;
|
||||
|
||||
// Rotated renders a SINGLE table, so there is no head table and
|
||||
// nothing to keep in step. The scroll-fade still needs to know how
|
||||
// wide the pinned column is, though — and it can't be assumed from
|
||||
// CSS, because auto layout widens that column to fit the longest
|
||||
// metric name. Measure it, then stop.
|
||||
// Fallback for any layout rendered as a single table (no head to
|
||||
// keep in step). Both orientations split head from body now, so this
|
||||
// is a safety net rather than a path — the scroll-fade still needs
|
||||
// the pinned column's width, so measure that and stop.
|
||||
if (!headTable) {
|
||||
const firstCell = bodyTable.querySelector('tbody tr > *');
|
||||
if (firstCell && tableWrapRef && tableWrapRef.current) {
|
||||
|
||||
Reference in New Issue
Block a user