🐛 Fix keep cells when create component inside grid layout

This commit is contained in:
alonso.torres
2024-01-18 17:16:16 +01:00
parent 4c7e565f6a
commit 26af5c7847
6 changed files with 68 additions and 21 deletions

View File

@@ -106,8 +106,9 @@
[:span {:class (stl/css :title)} title]
(when shortcut
[:span {:class (stl/css :shortcut)}
(for [sc (scd/split-sc shortcut)]
[:span {:class (stl/css :shortcut-key)} sc])])
(for [[idx sc] (d/enumerate (scd/split-sc shortcut))]
[:span {:key (dm/str shortcut "-" idx)
:class (stl/css :shortcut-key)} sc])])
(when (> (count children) 1)
[:span {:class (stl/css :submenu-icon)} i/arrow-refactor])