mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
feat: вертикальный resize карточки в Sections (#648)
Issue: #648 User-Visible: yes
This commit is contained in:
committed by
claude[bot]
parent
230813b355
commit
2452c51d00
@@ -45,10 +45,10 @@ test('#488 the shell sizes itself from the viewport and adopts pre-upgrade HA pr
|
||||
assert.match(panel, /if \(!Object\.prototype\.hasOwnProperty\.call\(this, key\)\) continue;[\s\S]*?delete \(this as unknown as Record<string, unknown>\)\[key\];/);
|
||||
});
|
||||
|
||||
test('#486 only the full card advertises a full-width Sections default', () => {
|
||||
test('#648 only the full card advertises resizable Sections defaults', () => {
|
||||
const card = source('src/houseplan-card.ts');
|
||||
const spaceCard = source('src/space-card.ts');
|
||||
assert.match(card, /getGridOptions\(\): \{ columns: 'full' \} \{\s*return \{ columns: 'full' \};\s*\}/);
|
||||
assert.match(card, /getGridOptions\(\): \{ columns: 'full'; rows: number; min_rows: number \} \{\s*return \{ columns: 'full', rows: 10, min_rows: 6 \};\s*\}/);
|
||||
assert.match(card, /getCardSize\(\): number/);
|
||||
assert.doesNotMatch(spaceCard, /getGridOptions/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user