File tree 7 files changed +36
-23
lines changed
7 files changed +36
-23
lines changed Original file line number Diff line number Diff line change 189
189
9 [105 147 ]
190
190
10 [74 105 ]})
191
191
192
- (defn home [recent-documents]
192
+ (defn home
193
+ [recent-documents]
193
194
[:div.flex.overflow-hidden
194
195
[ui/scroll-area
195
196
[:div.flex.justify-center.p-2
196
- [:div.justify-between.flex.w-full.lg:w-auto
197
- [:div.bg-primary.p-6.lg:p-12.flex.w-full.gap-8
198
- {:class " max-w-(--breakpoint-xl)" }
197
+ [:div.justify-between.flex.w-full
198
+ {:class " lg:w-auto" }
199
+ [:div.bg-primary.p-6.flex.w-full.gap-8
200
+ {:class " lg:p-12 max-w-(--breakpoint-xl)" }
199
201
[:div.flex-1
200
202
[:h1.text-4xl.mb-1.font-light config/app-name]
201
203
287
289
" https://repath.studio/roadmap/changelog/" ])}
288
290
" Changelog" ]]]
289
291
290
- [:div.hidden.md:block.flex-1
292
+ [:div.hidden.flex-1
293
+ {:class " md:block" }
291
294
[:img {:src " ./img/icon.svg" }]]]]]]])
292
295
293
296
(defn root
303
306
(if (seq @documents)
304
307
[:div.flex.h-full.flex-1.overflow-hidden.gap-px
305
308
(when @tree-visible
306
- [:div.flex-col.hidden.md:flex.overflow-hidden
307
- {:style {:width " 227px" }}
309
+ [:div.flex-col.hidden.overflow-hidden
310
+ {:class " md:flex"
311
+ :style {:width " 227px" }}
308
312
[document.v/actions]
309
313
[tree.v/root]])
310
314
[:div.flex.flex-col.flex-1.overflow-hidden.h-full
314
318
[editor]]
315
319
[:div.flex
316
320
(when @properties-visible
317
- [:div.hidden.md:flex
321
+ [:div.hidden
322
+ {:class " md:flex" }
318
323
[:div.flex.flex-col.h-full.w-80
319
324
[ui/scroll-area
320
325
(tool.hierarchy/right-panel @active-tool)]
Original file line number Diff line number Diff line change 93
93
:on-blur #(on-change-handler! % k v)
94
94
:on-key-down #(keyb/input-key-down-handler! % v on-change-handler! k v)})]
95
95
(when-not (or (empty? (str v)) disabled)
96
- [:button.button.bg-primary.text-muted.absolute.h-full.right-0.clear-input-button.hover:bg-transparent.invisible.p-1
97
- {:on-pointer-down #(rf/dispatch [::element.e/remove-attr k])}
96
+ [:button.button.bg-primary.text-muted.absolute.h-full.right-0.clear-input-button.invisible.p-1
97
+ {:class " hover:bg-transparent"
98
+ :on-pointer-down #(rf/dispatch [::element.e/remove-attr k])}
98
99
[ui/icon " times" ]])])
99
100
100
101
(defmethod hierarchy /form-element :default
Original file line number Diff line number Diff line change 28
28
[:> Select/Trigger
29
29
{:aria-label label
30
30
:as-child true }
31
- [:div.w-4.m-0.bg-transparent.h-full.hover:pt-1.flex.items-center
31
+ [:div.w-4.m-0.bg-transparent.h-full.flex.items-center
32
+ {:class " hover:pt-1" }
32
33
[:> Select/Value " " ]
33
34
[:> Select/Icon
34
35
[ui/icon " chevron-down" ]]]]
56
57
id (uuid (.-id datum))
57
58
color (if active? " var(--accent)" (.-color datum))]
58
59
(ra/as-element
59
- [:circle.transition-fill.hover:stroke-accent
60
- {:on-click #(rf/dispatch [::history.e/go-to id])
60
+ [:circle.transition-fill
61
+ {:class " hover:stroke-accent"
62
+ :on-click #(rf/dispatch [::history.e/go-to id])
61
63
:on-pointer-enter #(when-not active? (rf/dispatch [::history.e/preview id]))
62
64
:on-pointer-leave #(rf/dispatch [::history.e/reset-state id])
63
65
:cx " 0"
Original file line number Diff line number Diff line change 18
18
[:> DropdownMenu/Trigger
19
19
{:aria-label " Snap"
20
20
:as-child true }
21
- [:div.h-full.hover:pb-1.flex.items-center
21
+ [:div.h-full.flex.items-center
22
+ {:class " hover:pb-1" }
22
23
[ui/icon " chevron-up" ]]]
23
24
[:> DropdownMenu/Portal
24
25
[:> DropdownMenu/Content
Original file line number Diff line number Diff line change 20
20
21
21
(defn coordinates []
22
22
(let [[x y] @(rf/subscribe [::app.s/adjusted-pointer-pos ])]
23
- [:div.flex-col.font-mono.leading-tight.hidden.xl:flex
24
- {:style {:min-width " 90px" }}
23
+ [:div.flex-col.font-mono.leading-tight.hidden
24
+ {:class " xl:flex"
25
+ :style {:min-width " 90px" }}
25
26
[:div.flex.justify-between
26
27
[:span.mr-1 " X:" ] [:span (.toFixed x 2 )]]
27
28
[:div.flex.justify-between
141
142
:title " Zoom in"
142
143
:on-click #(rf/dispatch [::frame.e/zoom-in ])}
143
144
[ui/icon " plus" ]]
144
- [:div.flex.hidden.md:flex
145
+ [:div.flex.hidden
146
+ {:class " md:flex" }
145
147
[zoom-input zoom]
146
148
[:div.pr-2.overlay.flex.items-center " %" ]]
147
149
[zoom-menu]]))
181
183
:bottom " 9px"
182
184
:right " 9px" }}]]]]
183
185
[:div.grow
184
- [:div.px-1.hidden.2xl:flex.gap-1.flex-wrap.leading-none.truncate
185
- {:style {:max-height " var(--button-size)" }}
186
+ [:div.px-1.hidden.gap-1.flex-wrap.leading-none.truncate
187
+ {:class " 2xl:flex"
188
+ :style {:max-height " var(--button-size)" }}
186
189
help-message]]
187
190
(when loading
188
191
[:button.icon-button
Original file line number Diff line number Diff line change 34
34
35
35
[:p " Please consider submitting an error report to improve your experience." ]
36
36
37
- [:button.button.px-2.rounded.w-full.mb-5.border.border-default.hover:bg-transparent
38
- {:on-click #(rf/dispatch [::window.e/open-remote-url
37
+ [:button.button.px-2.rounded.w-full.mb-5.border.border-default
38
+ {:class " hover:bg-transparent"
39
+ :on-click #(rf/dispatch [::window.e/open-remote-url
39
40
(submit-error-url error-message)])}
40
41
" Submit an error report" ]
41
42
Original file line number Diff line number Diff line change 48
48
[:div.flex.relative.bg-secondary
49
49
{:class (when (and system/mac? (not fullscreen?)) " ml-16" )}
50
50
[menubar/root]]
51
- [:div.absolute.hidden.md:flex. justify-center.drag.grow.h-full.items-center.pointer-events-none
52
- {:class " left-1/2 -translate-x-1/2"
51
+ [:div.absolute.hidden.justify-center.drag.grow.h-full.items-center.pointer-events-none
52
+ {:class " md:flex left-1/2 -translate-x-1/2"
53
53
:style {:z-index -1 }}
54
54
@(rf/subscribe [::document.s/title-bar ])]
55
55
[:div.flex.h-full.flex-1.drag ]
You can’t perform that action at this time.
0 commit comments