navbar tweak
This commit is contained in:
1 parent
2e09239123
commit
c2b6b75f94
3 files changed
+17
-14
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="82"
|
||||
height="32"
|
||||
width="65"
|
||||
height="25"
|
||||
viewBox="0 0 98.161 37.571"
|
||||
>
|
||||
<g transform="translate(-22.26 -34.716)">
|
||||
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -1,7 +1,7 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="82"
|
||||
height="32"
|
||||
width="65"
|
||||
height="25"
|
||||
viewBox="0 0 98.161 37.571"
|
||||
>
|
||||
<g transform="translate(-22.26 -34.716)">
|
||||
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -54,22 +54,25 @@
|
||||
|
||||
<div class="navbar bg-base-100 sticky top-0 z-40">
|
||||
<div class="flex-1">
|
||||
<button on:click={() => ExternalControlProtocol.launchApp(appId)}>
|
||||
{#if $appThemeStore === "dark"}
|
||||
<PlayletLogoDark />
|
||||
{:else}
|
||||
<PlayletLogoLight />
|
||||
{/if}
|
||||
</button>
|
||||
<h4 class="label brightness-75">{version}</h4>
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
<button on:click={() => ExternalControlProtocol.launchApp(appId)}>
|
||||
{#if $appThemeStore === "dark"}
|
||||
<PlayletLogoDark />
|
||||
{:else}
|
||||
<PlayletLogoLight />
|
||||
{/if}
|
||||
</button>
|
||||
<div class="text-xs brightness-75">{version}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-none">
|
||||
<ThemeSelect />
|
||||
{#if currentProfile && currentProfile.username}
|
||||
<div class="badge badge-outline">
|
||||
<span>
|
||||
{currentProfile.username.length > 5
|
||||
? `${currentProfile.username.slice(0, 5)}…`
|
||||
<!-- TODO:P2 use text-ellipsis -->
|
||||
{currentProfile.username.length > 10
|
||||
? `${currentProfile.username.slice(0, 10)}…`
|
||||
: currentProfile.username}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user