Merge pull request #2434 from penpot/eva-fix-dragging

🐛 Fix draggin projects css
This commit is contained in:
Alejandro 2022-10-17 15:18:51 +02:00 committed by GitHub
commit b23ece88c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -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;

View file

@ -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)