1.8.4
Fix tick box table updates
This commit is contained in:
@@ -292,7 +292,7 @@ export function useAppState() {
|
||||
} = useTableScroll({
|
||||
headTableRef, bodyTableRef, bodyScrollRef, headTrackRef,
|
||||
forecast, visibleCols, selectedDay, skinType, vehicleType,
|
||||
indoorMode, indoorManaged,
|
||||
indoorMode, indoorManaged, showDecimals, showUnits,
|
||||
});
|
||||
|
||||
// ── 8. GEOCODING SEARCH ───────────────────────────────────────────────
|
||||
|
||||
@@ -36,6 +36,8 @@ export function useTableScroll({
|
||||
vehicleType,
|
||||
indoorMode,
|
||||
indoorManaged,
|
||||
showDecimals,
|
||||
showUnits,
|
||||
}) {
|
||||
// --- SCROLL INDICATORS ---------------------------------------------
|
||||
const [tableCanScrollLeft, setTableCanScrollLeft] = useState(false);
|
||||
@@ -215,7 +217,7 @@ export function useTableScroll({
|
||||
if (ro) ro.disconnect();
|
||||
window.removeEventListener('resize', sync);
|
||||
};
|
||||
}, [forecast, visibleCols, selectedDay, skinType, vehicleType, indoorMode, indoorManaged]);
|
||||
}, [forecast, visibleCols, selectedDay, skinType, vehicleType, indoorMode, indoorManaged, showDecimals, showUnits]);
|
||||
|
||||
return {
|
||||
tableCanScrollLeft,
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ export const UTCI_BANDS = [
|
||||
{ max: 24, label: 'Comfortable', bg: '#90d090', fg: '#157a15', fontWeight: 700 },
|
||||
{ max: 29, label: 'Warm', bg: '#f8e554', fg: '#1a1200' },
|
||||
{ max: 34, label: 'Hot', bg: '#f5aa54', fg: '#1a1200' },
|
||||
{ max: 39, label: 'Very hot', bg: '#f07f6a', fg: '#1a1200' },
|
||||
{ max: 39, label: 'Very hot', bg: '#f5884a', fg: '#1a1200' },
|
||||
{ max: 44, label: 'Extremely hot', bg: '#dd5454', fg: '#000000' },
|
||||
{ label: 'Danger', bg: '#880000', fg: '#ffffff', fontWeight: 700, darkenAmt: 0.18, textShadow: '-1px -1px 0 #3a0000, 1px -1px 0 #3a0000, -1px 1px 0 #3a0000, 1px 1px 0 #3a0000', solid: true },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user