Skip to content

Commit ff4597f

Browse files
committed
Dev environment - Improve manual-testing UI
1 parent 328d758 commit ff4597f

File tree

3 files changed

+29
-15
lines changed

3 files changed

+29
-15
lines changed

TestingArena/Box.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,12 @@ const highlightedConfig = computed(() => {
131131

132132
<template>
133133
<h1 class="gradient-text" style="width:fit-content; font-weight: 900"><slot name="title"/></h1>
134-
<button class="reset" @click="refresh">RELOAD PAGE</button>
134+
<button class="btn btn-reset" @click="refresh">
135+
<BaseIcon :size="20" stroke="#ff7f0e" name="restart"/>
136+
<code style="font-weight: bold;">
137+
RELOAD PAGE
138+
</code>
139+
</button>
135140

136141
<div class="knobs">
137142
<details>
@@ -292,14 +297,6 @@ h1, p {
292297
width: 800px;
293298
z-index: 10000000;
294299
}
295-
.reset {
296-
background: #ff6400;
297-
color: white;
298-
border: none;
299-
padding: 6px 12px;
300-
border-radius: 3px;
301-
margin: 12px 0;
302-
}
303300
304301
.btn {
305302
background-color: #3A3A3A;
@@ -318,6 +315,10 @@ h1, p {
318315
background-color: #5A5A5A;
319316
}
320317
318+
.btn-reset {
319+
margin: 0 0 2rem 0;
320+
}
321+
321322
@media screen and (max-width: 1000px) {
322323
.box {
323324
grid-template-columns: repeat(1, 1fr);

manual-testing/src/App.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const filteredComponents = computed(() => {
109109

110110
<div style="display:flex; margin-left: -1rem;">
111111
<RouterLink to="/">
112-
<div style="display:flex;align-items:center;gap:1rem;">
112+
<div style="display:flex;align-items:center;gap:1rem; padding: 0 0.5rem">
113113
<BaseIcon name="home" /> Home
114114
</div>
115115
</RouterLink>
@@ -225,7 +225,8 @@ nav {
225225
flex-direction: row;
226226
gap: 1rem;
227227
align-items:center;
228-
padding: 0.2rem 0;
228+
padding: 0.2rem 0.5rem;
229+
border-radius: 4px;
229230
}
230231
231232
.nav-item:hover {
@@ -240,7 +241,7 @@ nav {
240241
}
241242
242243
nav a.router-link-exact-active {
243-
background: linear-gradient(90deg, #42d392, #5f8aee);
244+
background: linear-gradient(90deg, #42d392, #5f8aee);
244245
background-size: 100% 100%;
245246
background-repeat: no-repeat;
246247
-webkit-background-clip: text;
@@ -254,13 +255,17 @@ nav a.router-link-exact-active:hover {
254255
background-color: transparent;
255256
}
256257
257-
nav :has(.router-link-exact-active) svg path {
258-
fill: #5f8aee;
258+
:deep(a.router-link-exact-active .nav-item .nav-icon path) {
259+
stroke: #42d392 !important;
260+
}
261+
262+
:deep(a.router-link-exact-active .nav-item) {
263+
background: #FFFFFF10;
259264
}
260265
261266
nav a {
262267
display: inline-block;
263-
padding: 0 1rem;
268+
padding: 0;
264269
font-size: 1rem;
265270
}
266271
</style>

src/App.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<script setup>
2+
/**
3+
* THIS TESTING PAGE IS DEPRECATED.
4+
*
5+
* Use the /manual-testing/src/App.vue
6+
* cd into manual-testing and npm run dev
7+
*
8+
*/
9+
210
import { markRaw, ref, computed } from "vue";
311
import TestingArena from "./TestingArena.vue";
412
import ArenaVueUiXy from "../TestingArena/ArenaVueUiXy.vue";

0 commit comments

Comments
 (0)