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:
parent
e884cba002
commit
aa3fe1cd2b
5 changed files with 4 additions and 9 deletions
|
@ -88,8 +88,6 @@
|
|||
}
|
||||
.drop-space {
|
||||
height: $s-12;
|
||||
border-radius: $br-8;
|
||||
background-color: var(--assets-item-background-color);
|
||||
}
|
||||
.dragging {
|
||||
position: absolute;
|
||||
|
|
|
@ -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)]
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
.component-group {
|
||||
.drop-space {
|
||||
height: $s-12;
|
||||
border-radius: $br-8;
|
||||
}
|
||||
.asset-grid {
|
||||
display: grid;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue