mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-03 05:08:53 +00:00
refactor: extract the devices surface styles (#266 slice 3/5)
82 блока устройств/маркеров/пылесосов → src/styles/devices.styles.ts, склейка [inline, devices, chrome, dialogs]. Три мутантных якоря (.dev .valtext, --dev-size, capsule radius) переадресованы на новый файл. Refactor-proof diff пуст; golden 129/129; npm test 1315/0. Issue: #266 User-Visible: no
This commit is contained in:
@@ -2106,7 +2106,7 @@ export const MUTANTS = [
|
||||
because: 'Text and Double must expose the complete dynamic value; the new shared shell '
|
||||
+ 'must not regress to the old clipped satellite',
|
||||
patches: [{
|
||||
file: 'src/styles.ts',
|
||||
file: 'src/styles/devices.styles.ts',
|
||||
find: ' .dev .valtext {\n overflow: visible;',
|
||||
replace: ' .dev .valtext {\n overflow: hidden;\n text-overflow: ellipsis;',
|
||||
}],
|
||||
@@ -2129,7 +2129,7 @@ export const MUTANTS = [
|
||||
because: 'the current effective size must be resolved once at the surface boundary; '
|
||||
+ 'restoring a late face-level 0.9 factor would shrink every marker a second time',
|
||||
patches: [{
|
||||
file: 'src/styles.ts',
|
||||
file: 'src/styles/devices.styles.ts',
|
||||
find: ' --dev-size: calc(var(--device-base-size, 2.25cqw) * var(--dev-scale, 1));',
|
||||
replace: ' --dev-size: calc(var(--device-base-size, 2.25cqw) * var(--dev-scale, 1) * 0.9);',
|
||||
}],
|
||||
@@ -2141,7 +2141,7 @@ export const MUTANTS = [
|
||||
because: 'a wide Text core must keep a radius based on its height instead of reverting '
|
||||
+ 'to the elliptical 50% rule',
|
||||
patches: [{
|
||||
file: 'src/styles.ts',
|
||||
file: 'src/styles/devices.styles.ts',
|
||||
find: ' border-radius: calc(var(--dev-size, var(--icon-size, 2.5cqw)) / 2);',
|
||||
replace: ' border-radius: 50%;',
|
||||
}],
|
||||
|
||||
Reference in New Issue
Block a user