Skip to content

Commit

Permalink
feat: small UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Oct 2, 2022
1 parent a15a87e commit fe5199f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
"windows": [
{
"title": "Solo2 Desktop",
"width": 800,
"height": 600,
"width": 1000,
"height": 800,
"resizable": true,
"fullscreen": false,
"label": "main",
Expand Down
1 change: 1 addition & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ body {
box-sizing: border-box;
max-width: calc(100vw - 48px);
width: 100%;
gap: 12px;
}

a {
Expand Down
2 changes: 1 addition & 1 deletion src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ declare namespace App {

// interface PageData {}

// interface PageError {}
// interface Error {}

// interface Platform {}
}
14 changes: 10 additions & 4 deletions src/lib/Breadcrumbs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
</script>

<header>
<TextBlock variant="title" class="breadcrumb-text"
<TextBlock variant="title" class="breadcrumb-text {$page.url?.pathname === "/" ? "current-link" : ""}"
><a href="/">Key List</a></TextBlock
>

{#each $page.url?.pathname?.split("/")?.slice(1) ?? [] as breadcrumb}
{#each Object.entries($page.url?.pathname?.split("/")?.slice(1) ?? []) as [i, breadcrumb]}
{#if breadcrumb.length > 0}
<svg
width="16"
Expand All @@ -28,7 +28,7 @@
d="M8.293 4.293a1 1 0 0 0 0 1.414L14.586 12l-6.293 6.293a1 1 0 1 0 1.414 1.414l7-7a1 1 0 0 0 0-1.414l-7-7a1 1 0 0 0-1.414 0Z"
/>
</svg>
<TextBlock variant="title" class="breadcrumb-text breadcrumb-text-next">
<TextBlock variant="title" class="breadcrumb-text breadcrumb-text-next {$page.url?.pathname?.split("/").length - 2 === parseInt(i, 10) ? "current-link" : ""}" >
<a href={extractRoute($page?.url?.pathname, breadcrumb)}>
{breadcrumb}
</a>
Expand Down Expand Up @@ -69,9 +69,15 @@
padding: 0 12px;
}
a {
color: var(--fds-text-primary);
color: var(--fds-text-secondary);
cursor: default;
}
a:hover {
text-decoration: none;
color: var(--fds-text-primary);
cursor: default;
}
:global(.current-link > a) {
color: var(--fds-text-primary);
}
</style>
1 change: 1 addition & 0 deletions src/lib/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
grid-column-end: 2;
width: 100%;
grid-area: nav;
margin: 12px;
}
</style>

0 comments on commit fe5199f

Please sign in to comment.