Skip to content

Commit 6781b47

Browse files
committed
introduce button-link class
1 parent 2067001 commit 6781b47

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

src/renderer/styles.css

+6
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@
143143
}
144144
}
145145

146+
147+
.button-link {
148+
@apply text-lg text-accent inline-block text-left text-wrap break-all;
149+
}
150+
151+
146152
.backdrop {
147153
@apply absolute inset-0 flex items-center justify-center;
148154
background-color: var(--backdrop);

src/renderer/views.cljs

+9-8
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129
(defn home []
130130
(let [recent @(rf/subscribe [::document.s/recent])]
131131
[:div.flex.overflow-auto.flex-1.min-h-full.justify-center.px-4
132-
[:div.bg-primary.w-full.self-center.justify-between.p-12.flex.max-w-screen-xl
133-
[:div
132+
[:div.bg-primary.w-full.self-center.justify-between.p-6.lg:p-12.flex.max-w-screen-xl
133+
[:div.overflow-hidden
134134
[:h1.text-4xl.mb-1.font-light
135135
"Repath Studio"]
136136

@@ -140,12 +140,12 @@
140140
[:h2.mb-3.mt-8.text-2xl "Start"]
141141

142142
[:div
143-
[:button.text-lg.text-accent.mr-2
143+
[:button.button-link.mr-2
144144
{:on-click #(rf/dispatch [::document.e/new])} "New"]
145145
[ui/shortcuts [::document.e/new]]]
146146

147147
[:div
148-
[:button.text-lg.text-accent.mr-2
148+
[:button.button-link.mr-2
149149
{:on-click #(rf/dispatch [::document.e/open])}
150150
"Open"]
151151
[ui/shortcuts [::document.e/open]]]
@@ -156,14 +156,15 @@
156156

157157
(for [file-path (take 2 recent)]
158158
^{:key file-path}
159-
[:button.text-lg.text-accent.block
160-
{:on-click #(rf/dispatch [::document.e/open file-path])}
161-
file-path])
159+
[:div
160+
[:button.button-link
161+
{:on-click #(rf/dispatch [::document.e/open file-path])}
162+
file-path]])
162163

163164
[:h2.mb-3.mt-8.text-2xl "Help"]
164165

165166
[:div
166-
[:button.text-lg.text-accent.mr-2
167+
[:button.button-link.mr-2
167168
{:on-click #(rf/dispatch [::dialog.e/cmdk])}
168169
"Command panel"]
169170
[ui/shortcuts [::dialog.e/cmdk]]]

0 commit comments

Comments
 (0)