|
114 | 114 | [toolbar.status/root]
|
115 | 115 | [repl/root]]))
|
116 | 116 |
|
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 |
| - |
132 | 117 | (defn root
|
133 | 118 | []
|
134 | 119 | [:> Tooltip/Provider
|
135 | 120 | [:div.flex.flex-col.flex-1.h-screen
|
136 | 121 | [win/app-header]
|
137 | 122 | (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]]]] |
170 | 139 | [home/panel])]
|
171 | 140 | [dialog/root]
|
172 | 141 | [notification/main]])
|
0 commit comments