diff --git a/frontend/src/lib/components/Marquee.svelte b/frontend/src/lib/components/Marquee.svelte new file mode 100644 index 00000000..1316da4c --- /dev/null +++ b/frontend/src/lib/components/Marquee.svelte @@ -0,0 +1,64 @@ + + + running = true} + on:mouseout={() => running = false} + on:focus={() => running = true} + on:blur={() => running = false} +> + + + + \ No newline at end of file diff --git a/frontend/src/lib/components/SVGIcon.svelte b/frontend/src/lib/components/SVGIcon.svelte index bab0005c..3f496562 100644 --- a/frontend/src/lib/components/SVGIcon.svelte +++ b/frontend/src/lib/components/SVGIcon.svelte @@ -5,6 +5,6 @@ export { clazz as class }; - + diff --git a/frontend/src/lib/components/Select.svelte b/frontend/src/lib/components/Select.svelte index 9ba305d4..8e17208a 100644 --- a/frontend/src/lib/components/Select.svelte +++ b/frontend/src/lib/components/Select.svelte @@ -80,7 +80,7 @@ Wrap button in a div so that the trigger node location does not change. -->
+
{#if $$slots.selected} {:else} diff --git a/frontend/src/lib/components/T.svelte b/frontend/src/lib/components/T.svelte index 56d0964a..45e3a857 100644 --- a/frontend/src/lib/components/T.svelte +++ b/frontend/src/lib/components/T.svelte @@ -32,7 +32,7 @@ export let language: string | undefined = undefined; export let parts: (TranslationComponentPart | TranslationElementPart)[] = []; - + const { t } = getTranslate(); function split(content: string) { @@ -85,10 +85,10 @@ {#each contentParts as part} {#if typeof part === 'string'} - {part} + {part} {:else if 'element' in part.component} {part.content} {:else} {part.content} {/if} -{/each} +{/each} \ No newline at end of file diff --git a/frontend/src/lib/components/left-bar/LaunchButton.svelte b/frontend/src/lib/components/left-bar/LaunchButton.svelte index b22c9134..eb1eca08 100644 --- a/frontend/src/lib/components/left-bar/LaunchButton.svelte +++ b/frontend/src/lib/components/left-bar/LaunchButton.svelte @@ -2,6 +2,7 @@ import { mdiOpenInNew, mdiTrayFull } from '@mdi/js'; import { getContextClient } from '@urql/svelte'; + import Marquee from '$lib/components/Marquee.svelte'; import SvgIcon from '$lib/components/SVGIcon.svelte'; import T from '$lib/components/T.svelte'; import Tooltip from '$lib/components/Tooltip.svelte'; @@ -135,10 +136,9 @@ disabled={!$canInstallMods || !!$progress} on:click={() => startQueue()} > - + - -
+
@@ -162,10 +162,9 @@ class="btn h-8 w-full text-sm bg-surface-200-700-token" disabled > - + - -
+
{:else if $launchButton === 'normal' || $isGameRunning || $isLaunchingGame}