mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
fix: show honest new-space display defaults
Issue: #204 User-Visible: yes
This commit is contained in:
committed by
claude[bot]
parent
4c8ba981e7
commit
6f89002e3a
@@ -476,6 +476,18 @@ export const MUTANTS = [
|
||||
replace: ' const areaLinkInteractive = true;',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'space-create-hidden-display-override',
|
||||
guard: 'node demo/smoke_space_create_display_defaults.mjs',
|
||||
because: 'Save must persist the two booleans visibly chosen for a new hand-drawn space; '
|
||||
+ 'the production smoke saves and reopens a mixed pair so the old hidden true/true override cannot return',
|
||||
patches: [{
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: ' show_borders: d.showBorders,\n show_names: d.showNames,',
|
||||
replace: " show_borders: d.source === 'draw' && d.mode === 'create' ? true : d.showBorders,\n"
|
||||
+ " show_names: d.source === 'draw' && d.mode === 'create' ? true : d.showNames,",
|
||||
}],
|
||||
},
|
||||
];
|
||||
|
||||
// --- механика ---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user