Fix rotated table layout issues
This commit is contained in:
fraxle
2026-08-09 09:47:57 +01:00
parent 1bb870eab3
commit dace65b750
4 changed files with 149 additions and 103 deletions
+1 -4
View File
@@ -732,8 +732,6 @@ export function useAppState() {
const bodyScrollRef = useRef(null);
const bodyTableRef = useRef(null);
const tableWrapRef = useRef(null);
// The rotated orientation's single scroll pane (scrolls in both axes).
const rotatedScrollRef = useRef(null);
// ── 7. COLUMN POPUP + TABLE SCROLL ───────────────────────────────────
const {
@@ -753,7 +751,6 @@ export function useAppState() {
handleBodyScroll,
} = useTableScroll({
headTableRef, bodyTableRef, bodyScrollRef, headTrackRef, tableWrapRef,
rotatedScrollRef,
forecast, visibleCols, selectedDay, skinType, vehicleType,
indoorMode, indoorManaged, showDecimals, showUnits,
// The rotated table is a single table with CSS-only sticky edges, so
@@ -910,7 +907,7 @@ export function useAppState() {
forecastView, setForecastView,
// table refs
headStickyRef, headTrackRef, headTableRef,
bodyScrollRef, bodyTableRef, tableWrapRef, rotatedScrollRef,
bodyScrollRef, bodyTableRef, tableWrapRef,
// column popup
colPopup, colPopupRef,
handleThClick, handleThEnter, handleThLeave,