Table column fix
This commit is contained in:
fraxle
2026-05-18 16:05:22 +01:00
parent c11774a7d8
commit 9e810e2f8d
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -284,6 +284,7 @@ export function UTCIForecast() {
} = useTableScroll({
headTableRef, bodyTableRef, bodyScrollRef, headTrackRef,
forecast, visibleCols, selectedDay, skinType, vehicleType,
indoorMode, indoorManaged,
});
// Geocoding search
+5 -2
View File
@@ -13,7 +13,8 @@
//
// Inputs (passed by app.js):
// refs: { headTableRef, bodyTableRef, bodyScrollRef, headTrackRef }
// deps: { forecast, visibleCols, selectedDay, skinType, vehicleType }
// deps: { forecast, visibleCols, selectedDay, skinType, vehicleType,
// indoorMode, indoorManaged }
// — anything that should cause a re-sync when it changes.
//
// Outputs:
@@ -33,6 +34,8 @@ export function useTableScroll({
selectedDay,
skinType,
vehicleType,
indoorMode,
indoorManaged,
}) {
// ─── SCROLL INDICATORS ─────────────────────────────────────────────
const [tableCanScrollLeft, setTableCanScrollLeft] = useState(false);
@@ -212,7 +215,7 @@ export function useTableScroll({
if (ro) ro.disconnect();
window.removeEventListener('resize', sync);
};
}, [forecast, visibleCols, selectedDay, skinType, vehicleType]);
}, [forecast, visibleCols, selectedDay, skinType, vehicleType, indoorMode, indoorManaged]);
return {
tableCanScrollLeft,