fix v1.15.5: room hover darkens the fill instead of always grey — scope legacy overlay/yard hover with :not(.styled) so filled rooms use brightness(0.78), unfilled stay grey

This commit is contained in:
Matysh
2026-07-08 17:56:48 +03:00
parent cc27a6b2fa
commit 5f9cfb9e10
9 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ import './editor';
import { cardStyles } from './styles';
import { langOf, t, type I18nKey } from './i18n';
const CARD_VERSION = '1.15.4';
const CARD_VERSION = '1.15.5';
const LS_KEY = 'houseplan_card_layout_v1';
const LS_CFG = 'houseplan_card_cfg_v1'; // cache of the server config+layout for instant rendering
const LS_ZOOM = 'houseplan_card_zoom_v1';
+2 -2
View File
@@ -191,7 +191,7 @@ export const cardStyles = css`
stroke: transparent;
stroke-width: 2;
}
.room.overlay:hover {
.room.overlay:not(.styled):hover {
fill: #9aa0a6;
fill-opacity: 0.22;
stroke: var(--hp-muted);
@@ -201,7 +201,7 @@ export const cardStyles = css`
stroke: #4b8c5a;
stroke-width: 2;
}
.room.yard:hover {
.room.yard:not(.styled):hover {
fill: rgba(75, 140, 90, 0.24);
stroke: #6fbf86;
}