🐛 Fix workspace context menu in small screens

This commit is contained in:
Eva Marco
2024-03-13 17:36:40 +01:00
parent 04a69c2a2c
commit fbe09e6b5a
5 changed files with 8 additions and 91 deletions

View File

@@ -652,11 +652,10 @@
[:& dropdown {:show (boolean mdata)
:on-close #(st/emit! dw/hide-context-menu)}
[:ul
{:class (stl/css :workspace-context-menu)
:ref dropdown-ref
:style {:top top :left left}
:on-context-menu prevent-default}
[:ul {:class (stl/css :workspace-context-menu)
:ref dropdown-ref
:style {:top top :left left}
:on-context-menu prevent-default}
(case (:kind mdata)
:shape [:& shape-context-menu {:mdata mdata}]