Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Thomas G. Lopes
commited on
Commit
·
8c7e7de
1
Parent(s):
209fd1c
qol changes
Browse files
src/app.css
CHANGED
|
@@ -26,3 +26,7 @@
|
|
| 26 |
html {
|
| 27 |
font-size: 15px;
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
html {
|
| 27 |
font-size: 15px;
|
| 28 |
}
|
| 29 |
+
|
| 30 |
+
:focus-visible:not(:is(.outline-hidden, .!outline-hidden)) {
|
| 31 |
+
outline: 4px solid white;
|
| 32 |
+
}
|
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
|
@@ -12,6 +12,7 @@
|
|
| 12 |
} from "./inferencePlaygroundUtils";
|
| 13 |
|
| 14 |
import { goto } from "$app/navigation";
|
|
|
|
| 15 |
import { onDestroy, onMount } from "svelte";
|
| 16 |
import IconCode from "../Icons/IconCode.svelte";
|
| 17 |
import IconCompare from "../Icons/IconCompare.svelte";
|
|
@@ -425,7 +426,7 @@
|
|
| 425 |
{:else}
|
| 426 |
Run <span
|
| 427 |
class="inline-flex gap-0.5 rounded-sm border border-white/20 bg-white/10 px-0.5 text-xs text-white/70"
|
| 428 |
-
|
| 429 |
>
|
| 430 |
{/if}
|
| 431 |
</button>
|
|
|
|
| 12 |
} from "./inferencePlaygroundUtils";
|
| 13 |
|
| 14 |
import { goto } from "$app/navigation";
|
| 15 |
+
import { isMac } from "$lib/utils/platform";
|
| 16 |
import { onDestroy, onMount } from "svelte";
|
| 17 |
import IconCode from "../Icons/IconCode.svelte";
|
| 18 |
import IconCompare from "../Icons/IconCompare.svelte";
|
|
|
|
| 426 |
{:else}
|
| 427 |
Run <span
|
| 428 |
class="inline-flex gap-0.5 rounded-sm border border-white/20 bg-white/10 px-0.5 text-xs text-white/70"
|
| 429 |
+
>{isMac() ? "⌘" : "Ctrl"}<span class="translate-y-px">↵</span></span
|
| 430 |
>
|
| 431 |
{/if}
|
| 432 |
</button>
|
src/lib/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
// place files you want to import through the `$lib` alias in this folder.
|
|
|
|
|
|
src/lib/utils/platform.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export function isMac() {
|
| 2 |
+
return navigator.platform.toUpperCase().indexOf("MAC") >= 0;
|
| 3 |
+
}
|