mirror of
https://github.com/penpot/penpot.git
synced 2025-05-26 07:06:13 +02:00
♻️ Refactor binfile implementation
This commit is contained in:
parent
99ed610dde
commit
dd73152afd
5 changed files with 370 additions and 362 deletions
|
@ -203,7 +203,7 @@
|
|||
right: 5px;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
width: 15px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
|
||||
span {
|
||||
|
@ -218,9 +218,11 @@
|
|||
&.menu {
|
||||
margin-right: 0;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
> svg {
|
||||
fill: $color-gray-60;
|
||||
|
|
|
@ -142,10 +142,10 @@
|
|||
(fn [event]
|
||||
(dom/prevent-default event)
|
||||
(when-not selected?
|
||||
(let [shift? (kbd/shift? event)]
|
||||
(when-not shift?
|
||||
(st/emit! (dd/clear-selected-files)))
|
||||
(st/emit! (dd/toggle-file-select file))))
|
||||
(when-not (kbd/shift? event)
|
||||
(st/emit! (dd/clear-selected-files)))
|
||||
(st/emit! (dd/toggle-file-select file)))
|
||||
|
||||
(let [position (dom/get-client-position event)]
|
||||
(swap! local assoc
|
||||
:menu-open true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue