Skip to content

Commit bcf761f

Browse files
committed
remove resize handles
1 parent 93d4756 commit bcf761f

File tree

1 file changed

+16
-47
lines changed

1 file changed

+16
-47
lines changed

src/renderer/views.cljs

+16-47
Original file line numberDiff line numberDiff line change
@@ -114,59 +114,28 @@
114114
[toolbar.status/root]
115115
[repl/root]]))
116116

117-
(defn tree-panel
118-
[]
119-
(when @(rf/subscribe [:panel/visible? :tree])
120-
[:<>
121-
[:> Panel
122-
{:id "tree-panel"
123-
:class "flex flex-col"
124-
:defaultSize 5
125-
:style {:min-width "227px"}}
126-
[doc/actions]
127-
[tree/root]]
128-
[:> PanelResizeHandle
129-
{:id "tree-resize-handle"
130-
:className "resize-handle"}]]))
131-
132117
(defn root
133118
[]
134119
[:> Tooltip/Provider
135120
[:div.flex.flex-col.flex-1.h-screen
136121
[win/app-header]
137122
(if (seq @(rf/subscribe [:documents]))
138-
[:> PanelGroup
139-
{:direction "horizontal"
140-
:id "root-group"
141-
:autoSaveId "root-group"}
142-
[tree-panel]
143-
[:> Panel
144-
{:id "main-panel"
145-
:order 2}
146-
[:div.flex.flex-col.flex-1.overflow-hidden.h-full
147-
[doc/tab-bar]
148-
[:> PanelGroup
149-
{:direction "horizontal"
150-
:id "center-group"
151-
:autoSaveId "center-group"}
152-
[:> Panel
153-
{:id "center-panel"
154-
:minSize 10
155-
:order 1}
156-
[:div.flex.h-full.flex-col
157-
[editor]]]
158-
(when @(rf/subscribe [:panel/visible? :properties])
159-
[:<>
160-
[:> PanelResizeHandle
161-
{:id "properties-resize-handle"
162-
:className "resize-handle"}]
163-
[:> Panel
164-
{:id "properties-panel"
165-
:order 2
166-
:defaultSize 5
167-
:style {:min-width "300px"}}
168-
[attr/form]]])
169-
[toolbar.object/root]]]]]
123+
[:div.flex.h-full.flex-1
124+
(when @(rf/subscribe [:panel/visible? :tree])
125+
[:div.flex.flex-col
126+
{:style {:width "227px"}}
127+
[doc/actions]
128+
[tree/root]])
129+
[:div.flex.flex-col.flex-1.overflow-hidden.h-full
130+
[doc/tab-bar]
131+
[:div.flex.h-full.flex-1
132+
[:div.flex.h-full.flex-col.flex-1
133+
[editor]]
134+
(when @(rf/subscribe [:panel/visible? :properties])
135+
[:div.flex
136+
{:style {:width "300px"}}
137+
[attr/form]])
138+
[toolbar.object/root]]]]
170139
[home/panel])]
171140
[dialog/root]
172141
[notification/main]])

0 commit comments

Comments
 (0)