Compare commits

...

2 Commits

Author SHA1 Message Date
9c46cdf9cf feat(dashboard): adjust scene label style
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m1s
2025-10-31 01:34:11 +00:00
4e47111a4d fix(dashboard): dont set brightness when sliding
Co-authored-by: Ona <no-reply@ona.com>
2025-10-31 01:33:57 +00:00

View File

@@ -197,7 +197,7 @@ export function LightControlTile({
delete bar.dataset.touchProximity
const step = LIGHT_CONTROL_TILE_SLIDER_BAR_COUNT - i - 1
requestBrightnessStepChange(step)
setIntermediateBrightnessStep(step)
if (barRefs.current[i - 1]) {
barRefs.current[i - 1]!.dataset.touchProximity = "close"
@@ -259,10 +259,10 @@ export function LightControlTile({
const lastElement = barRefs.current[0]
if (lastElement && x > lastElement.getBoundingClientRect().right) {
lastElement.dataset.thumb = "true"
requestBrightnessStepChange(LIGHT_CONTROL_TILE_SLIDER_BAR_COUNT - 1)
setIntermediateBrightnessStep(LIGHT_CONTROL_TILE_SLIDER_BAR_COUNT - 1)
} else if (firstElement && x < firstElement.getBoundingClientRect().left) {
firstElement.dataset.thumb = "true"
requestBrightnessStepChange(0)
setIntermediateBrightnessStep(0)
}
}
}
@@ -351,7 +351,7 @@ export function LightSceneTile({
)}
>
<Icon size={16} strokeWidth={2} />
<p className="text-lg tracking-none leading-none">{name}</p>
<p className="text-md tracking-none leading-none uppercase">{name}</p>
</button>
))}
</Tile>