mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 13:36:11 +02:00
Merge pull request #2434 from penpot/eva-fix-dragging
🐛 Fix draggin projects css
This commit is contained in:
commit
b23ece88c2
2 changed files with 11 additions and 3 deletions
|
@ -43,6 +43,13 @@
|
|||
text-align: initial;
|
||||
}
|
||||
|
||||
&.dragged {
|
||||
border-radius: $br-small;
|
||||
border: 2px solid lighten($color-gray-20, 15%);
|
||||
text-align: initial;
|
||||
max-height: 160px;
|
||||
}
|
||||
|
||||
&.placeholder {
|
||||
min-width: 115px;
|
||||
max-width: 115px;
|
||||
|
|
|
@ -390,12 +390,13 @@
|
|||
|
||||
(mf/defc line-grid-row
|
||||
[{:keys [files selected-files dragging? limit] :as props}]
|
||||
(let [limit (if dragging? (dec limit) limit)]
|
||||
(let [elements limit
|
||||
limit (if dragging? (dec limit) limit)]
|
||||
[:div.grid-row.no-wrap
|
||||
{:style {:grid-template-columns (dm/str "repeat(" limit ", 1fr)")}}
|
||||
{:style {:grid-template-columns (dm/str "repeat(" elements ", 1fr)")}}
|
||||
|
||||
(when dragging?
|
||||
[:div.grid-item])
|
||||
[:div.grid-item.dragged])
|
||||
(for [item (take limit files)]
|
||||
[:& grid-item
|
||||
{:id (:id item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue