mirror of
https://github.com/penpot/penpot.git
synced 2025-06-11 01:01:37 +02:00
🐛 Fix draggin projects css
This commit is contained in:
parent
5c8710b8cb
commit
0765587373
2 changed files with 11 additions and 3 deletions
|
@ -43,6 +43,13 @@
|
||||||
text-align: initial;
|
text-align: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.dragged {
|
||||||
|
border-radius: $br-small;
|
||||||
|
border: 2px solid lighten($color-gray-20, 15%);
|
||||||
|
text-align: initial;
|
||||||
|
max-height: 160px;
|
||||||
|
}
|
||||||
|
|
||||||
&.placeholder {
|
&.placeholder {
|
||||||
min-width: 115px;
|
min-width: 115px;
|
||||||
max-width: 115px;
|
max-width: 115px;
|
||||||
|
|
|
@ -390,12 +390,13 @@
|
||||||
|
|
||||||
(mf/defc line-grid-row
|
(mf/defc line-grid-row
|
||||||
[{:keys [files selected-files dragging? limit] :as props}]
|
[{: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
|
[: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?
|
(when dragging?
|
||||||
[:div.grid-item])
|
[:div.grid-item.dragged])
|
||||||
(for [item (take limit files)]
|
(for [item (take limit files)]
|
||||||
[:& grid-item
|
[:& grid-item
|
||||||
{:id (:id item)
|
{:id (:id item)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue