navbar tweak

This commit is contained in:
Brahim Hadriche committed 2025-06-01 16:01:57 -04:00
1 parent 2e09239123
commit c2b6b75f94
3 files changed
+17 -14

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="82" width="65"
height="32" height="25"
viewBox="0 0 98.161 37.571" viewBox="0 0 98.161 37.571"
> >
<g transform="translate(-22.26 -34.716)"> <g transform="translate(-22.26 -34.716)">

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="82" width="65"
height="32" height="25"
viewBox="0 0 98.161 37.571" viewBox="0 0 98.161 37.571"
> >
<g transform="translate(-22.26 -34.716)"> <g transform="translate(-22.26 -34.716)">

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

+13 -10
View File
@@ -54,22 +54,25 @@
<div class="navbar bg-base-100 sticky top-0 z-40"> <div class="navbar bg-base-100 sticky top-0 z-40">
<div class="flex-1"> <div class="flex-1">
<button on:click={() => ExternalControlProtocol.launchApp(appId)}> <div class="flex flex-col justify-center items-center">
{#if $appThemeStore === "dark"} <button on:click={() => ExternalControlProtocol.launchApp(appId)}>
<PlayletLogoDark /> {#if $appThemeStore === "dark"}
{:else} <PlayletLogoDark />
<PlayletLogoLight /> {:else}
{/if} <PlayletLogoLight />
</button> {/if}
<h4 class="label brightness-75">{version}</h4> </button>
<div class="text-xs brightness-75">{version}</div>
</div>
</div> </div>
<div class="flex-none"> <div class="flex-none">
<ThemeSelect /> <ThemeSelect />
{#if currentProfile && currentProfile.username} {#if currentProfile && currentProfile.username}
<div class="badge badge-outline"> <div class="badge badge-outline">
<span> <span>
{currentProfile.username.length > 5 <!-- TODO:P2 use text-ellipsis -->
? `${currentProfile.username.slice(0, 5)}…` {currentProfile.username.length > 10
? `${currentProfile.username.slice(0, 10)}…`
: currentProfile.username} : currentProfile.username}
</span> </span>
</div> </div>