Releases: PraxiGEN/custom-stack-cards
Releases · PraxiGEN/custom-stack-cards
Release list
v1.1.2-lit - Optimize README.md
说明 / Description:
- Optimize:add it to HACS
- 优化:添加到HACS
v1.1.1-lit - Fix content shrink issues
说明 / Description:
- Fixed: Content shrink issue caused by width being set to auto
- 修复:由于宽度被设置为 auto 导致的内容无法压缩问题
v1.1.0-lit - Fix layout issues after HA 2026.4.0
Description / 说明:
- Fixed: Sub-card vertical alignment issue
- 修复:解决子卡垂直对齐问题
v1.1.0-lit-beta1 - Fix layout issues after HA 2026.4.0
Description / 说明:
This version is a test build.
该版本为测试版本。
Fixed: Sub-card vertical alignment issue
修复:解决子卡垂直对齐问题
v1.0.9-lit.1 - Fix: Preserve Child Card Padding
Description / 说明
-
Fixed an issue where child card content padding was forcibly removed. Child cards now keep their original layout and spacing, ensuring consistent appearance with standalone cards.
-
修复子卡内容内边距被强制移除的问题。现在子卡会保留原有的布局和间距,显示效果与单独使用卡片时保持一致。
v1.0.9-lit - Smoother Rendering and Unified Styles for Child Cards
Description / 说明
- Smoother stack rendering with keyed repeat: Child cards now use entity, type, or object reference as the key in repeat, ensuring consistent DOM reuse and preventing glitches when cards are reordered or rebuilt.
- 堆叠渲染更平滑,使用 keyed repeat:子卡在 repeat 中使用 entity、type 或对象引用作为 key,保证 DOM 复用稳定,卡片重排或重建时不会出现渲染错乱。
- Reliable baseline style injection: Styles are injected once per shadowRoot and automatically re-applied if a child card rebuilds, making child cards visually clean and consistent in all scenarios.
- 可靠的基础样式注入:样式只在每个 shadowRoot 注入一次,并在子卡重建时自动重新应用,使子卡在各种场景下显示整洁一致。
- Safe rebuild handling: ll-rebuild events are handled properly, preventing stale references or infinite rebuild loops, and ensuring child cards are always recreated correctly.
- 安全的重建处理:ll-rebuild 事件得到正确处理,避免失效引用或循环重建,保证子卡在重建时始终正确创建。
- Performance optimized: Improved rendering performance with multiple child cards, providing a consistent experience in both editor and preview modes.
- 性能优化:多子卡场景下渲染更加流畅,编辑器与预览模式体验一致。
v1.0.8-lit - Sub-card vertical alignment
Description / 说明
- Fixed : Sub-card vertical alignment issue
- 修复:子卡垂直对齐问题。
v1.0.7-lit - Fix: Title display & Grid custom columns
Description / 说明
- Fixed : This update restores proper title display at the top of the card.
- 修复:本次更新已修复,支持在卡片顶部正确显示 title。
- Fixed: Grid layout did not support custom columns. Added columns option to grid-stack-in-card, consistent with the official grid-card.
- 修复:Grid 布局未支持自定义列数。本次更新新增 columns 配置项,允许在 grid-stack-in-card 中自定义列数,与官方 grid-card 保持一致。
v1.0.6-lit - Fix: Default Card Height
Description / 说明:
- Fixed / 修复: Default card height was incorrectly reported as 1 when no grid_options were provided.
- 当未提供 grid_options 时,卡片默认高度错误地固定为 1。
- Change / 变更: Updated getCardSize() and getGridOptions() logic to dynamically calculate total size and grid rows based on child cards.
- 更新了 getCardSize() 与 getGridOptions() 的逻辑,现在会根据子卡片数量动态计算总高度和网格行数。
v1.0.5-lit
Description / 说明:
- Rewritten base logic with Lit: synchronously create child cards and render using repeat, ensuring smooth rendering with multiple cards.
- 使用 Lit 重构底层逻辑:同步创建子卡,使用 repeat 渲染,确保多子卡渲染平滑不卡顿。
- Unified baseline style for child cards: removes shadow, border, border-radius, and background. Child cards are simpler in the stack, and styles only apply to the root card.
- 子卡统一 baseline 样式:去除阴影、边框、圆角和背景,子卡在堆叠中更简洁,样式仅作用于根卡。
- Performance optimized: smoother rendering for multiple child cards, consistent experience in editor and preview.
- 性能优化:多子卡场景渲染更流畅,编辑器和预览体验一致。