Skip to content

Commit d67bbc7

Browse files
committed
fix classes
1 parent 7e66b5c commit d67bbc7

File tree

7 files changed

+36
-23
lines changed

7 files changed

+36
-23
lines changed

src/renderer/app/views.cljs

+13-8
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,15 @@
189189
9 [105 147]
190190
10 [74 105]})
191191

192-
(defn home [recent-documents]
192+
(defn home
193+
[recent-documents]
193194
[:div.flex.overflow-hidden
194195
[ui/scroll-area
195196
[: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)"}
199201
[:div.flex-1
200202
[:h1.text-4xl.mb-1.font-light config/app-name]
201203

@@ -287,7 +289,8 @@
287289
"https://repath.studio/roadmap/changelog/"])}
288290
"Changelog"]]]
289291

290-
[:div.hidden.md:block.flex-1
292+
[:div.hidden.flex-1
293+
{:class "md:block"}
291294
[:img {:src "./img/icon.svg"}]]]]]]])
292295

293296
(defn root
@@ -303,8 +306,9 @@
303306
(if (seq @documents)
304307
[:div.flex.h-full.flex-1.overflow-hidden.gap-px
305308
(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"}}
308312
[document.v/actions]
309313
[tree.v/root]])
310314
[:div.flex.flex-col.flex-1.overflow-hidden.h-full
@@ -314,7 +318,8 @@
314318
[editor]]
315319
[:div.flex
316320
(when @properties-visible
317-
[:div.hidden.md:flex
321+
[:div.hidden
322+
{:class "md:flex"}
318323
[:div.flex.flex-col.h-full.w-80
319324
[ui/scroll-area
320325
(tool.hierarchy/right-panel @active-tool)]

src/renderer/attribute/views.cljs

+3-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@
9393
:on-blur #(on-change-handler! % k v)
9494
:on-key-down #(keyb/input-key-down-handler! % v on-change-handler! k v)})]
9595
(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])}
9899
[ui/icon "times"]])])
99100

100101
(defmethod hierarchy/form-element :default

src/renderer/history/views.cljs

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
[:> Select/Trigger
2929
{:aria-label label
3030
: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"}
3233
[:> Select/Value ""]
3334
[:> Select/Icon
3435
[ui/icon "chevron-down"]]]]
@@ -56,8 +57,9 @@
5657
id (uuid (.-id datum))
5758
color (if active? "var(--accent)" (.-color datum))]
5859
(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])
6163
:on-pointer-enter #(when-not active? (rf/dispatch [::history.e/preview id]))
6264
:on-pointer-leave #(rf/dispatch [::history.e/reset-state id])
6365
:cx "0"

src/renderer/snap/views.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
[:> DropdownMenu/Trigger
1919
{:aria-label "Snap"
2020
: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"}
2223
[ui/icon "chevron-up"]]]
2324
[:> DropdownMenu/Portal
2425
[:> DropdownMenu/Content

src/renderer/toolbar/status.cljs

+8-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020

2121
(defn coordinates []
2222
(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"}}
2526
[:div.flex.justify-between
2627
[:span.mr-1 "X:"] [:span (.toFixed x 2)]]
2728
[:div.flex.justify-between
@@ -141,7 +142,8 @@
141142
:title "Zoom in"
142143
:on-click #(rf/dispatch [::frame.e/zoom-in])}
143144
[ui/icon "plus"]]
144-
[:div.flex.hidden.md:flex
145+
[:div.flex.hidden
146+
{:class "md:flex"}
145147
[zoom-input zoom]
146148
[:div.pr-2.overlay.flex.items-center "%"]]
147149
[zoom-menu]]))
@@ -181,8 +183,9 @@
181183
:bottom "9px"
182184
:right "9px"}}]]]]
183185
[: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)"}}
186189
help-message]]
187190
(when loading
188191
[:button.icon-button

src/renderer/utils/error.cljs

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434

3535
[:p "Please consider submitting an error report to improve your experience."]
3636

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
3940
(submit-error-url error-message)])}
4041
"Submit an error report"]
4142

src/renderer/window/views.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
[:div.flex.relative.bg-secondary
4949
{:class (when (and system/mac? (not fullscreen?)) "ml-16")}
5050
[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"
5353
:style {:z-index -1}}
5454
@(rf/subscribe [::document.s/title-bar])]
5555
[:div.flex.h-full.flex-1.drag]

0 commit comments

Comments
 (0)