0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-30 16:41:20 -05:00

🐛 Fix problems with assets

This commit is contained in:
alonso.torres 2023-12-12 14:33:41 +01:00
parent e884cba002
commit aa3fe1cd2b
5 changed files with 4 additions and 9 deletions

View file

@ -88,8 +88,6 @@
}
.drop-space {
height: $s-12;
border-radius: $br-8;
background-color: var(--assets-item-background-color);
}
.dragging {
position: absolute;

View file

@ -95,7 +95,7 @@
on-component-click
(mf/use-fn
(mf/deps component-id)
(mf/deps component-id on-asset-click)
(fn [event]
(dom/stop-propagation event)
(on-asset-click component-id unselect-all event)))
@ -141,7 +141,7 @@
on-context-menu
(mf/use-fn
(mf/deps component-id)
(mf/deps on-context-menu component-id)
(partial on-context-menu component-id))]
(if ^boolean new-css-system
@ -449,6 +449,7 @@
toggle-list-style (mf/use-ctx cmm/assets-toggle-list-style)
selected (:components selected)
selected-full (into #{} (filter #(contains? selected (:id %))) components)
multi-components? (> (count selected) 1)
multi-assets? (or (seq (:graphics selected))
@ -519,6 +520,7 @@
(mf/use-fn
(mf/deps selected on-clear-selection read-only?)
(fn [component-id event]
(dom/stop-propagation event)
(dom/prevent-default event)
(let [pos (dom/get-client-position event)]

View file

@ -9,7 +9,6 @@
.component-group {
.drop-space {
height: $s-12;
border-radius: $br-8;
}
.asset-grid {
display: grid;

View file

@ -9,8 +9,6 @@
.graphics-group {
.drop-space {
height: $s-12;
border-radius: $br-8;
background-color: var(--color-foreground-secondary);
}
.asset-grid {
display: grid;

View file

@ -22,8 +22,6 @@
padding: 0 0 0 $s-4;
.drop-space {
height: $s-12;
border-radius: $br-8;
background-color: var(--assets-item-background-color);
}
.grid-placeholder {
height: $s-2;