Skip to content

Commit f543eb5

Browse files
committed
turn add-new into a button
1 parent 1403935 commit f543eb5

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

packages/repl/src/lib/Input/ComponentSelector.svelte

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@
153153
{/each}
154154
</div>
155155

156-
<button class="add-new" onclick={add_new} aria-label="add new component" title="add new component"
156+
<button
157+
class="raised add-new"
158+
onclick={add_new}
159+
aria-label="add new component"
160+
title="add new component"
157161
></button>
158162

159163
<div class="runes">
@@ -166,6 +170,8 @@
166170
.component-selector {
167171
position: relative;
168172
display: flex;
173+
gap: 0.5rem;
174+
align-items: center;
169175
padding: 0 1rem 0 0;
170176
171177
/* fake border (allows tab borders to appear above it) */
@@ -183,13 +189,13 @@
183189
.file-tabs {
184190
border: none;
185191
margin: 0;
192+
height: 100%;
186193
white-space: nowrap;
187194
overflow-x: auto;
188195
overflow-y: hidden;
189196
}
190197
191-
.file-tabs .button,
192-
.add-new {
198+
.file-tabs .button {
193199
position: relative;
194200
display: inline-flex;
195201
align-items: center;
@@ -198,17 +204,9 @@
198204
border: none;
199205
padding: 0 1rem;
200206
height: 100%;
201-
aspect-ratio: 1;
202-
margin: 0;
203-
border-radius: 0;
204207
cursor: pointer;
205208
}
206209
207-
.add-new {
208-
background: url(./file-new.svg) 50% 50% no-repeat;
209-
background-size: 1em;
210-
}
211-
212210
.file-tabs .button {
213211
--padding-left: 2.6rem;
214212
--padding-right: 1.4rem;
@@ -285,9 +283,10 @@
285283
}
286284
287285
.add-new {
288-
padding: 12px 10px 8px 8px;
289-
height: 40px;
290-
text-align: center;
286+
height: 3.2rem;
287+
aspect-ratio: 1;
288+
background: url(./file-new.svg) 50% 50% no-repeat;
289+
background-size: 1em;
291290
}
292291
293292
.runes {

0 commit comments

Comments
 (0)