Greyscale emojis, better home

This commit is contained in:
Niek van der Maas 2023-03-03 14:19:57 +01:00
parent 06a383227a
commit 23fbc24c6e
4 changed files with 31 additions and 24 deletions

View File

@ -17,6 +17,10 @@ a.is-disabled {
opacity: 0.5;
}
.greyscale {
filter: grayscale(100%);
}
$footer-padding: 3rem 1.5rem;
@import "/node_modules/bulma/bulma.sass";

View File

@ -115,7 +115,7 @@
class="button is-warning is-pulled-right"
on:click={() => {
clearMessages(chatId);
}}>🗑️ Clear messages</button
}}><span class="greyscale mr-2">🗑️</span> Clear messages</button
>
<p class="subtitle">Chat {chatId}</p>

View File

@ -52,15 +52,16 @@
{/if}
</div>
</article>
{#if apiKey}
<article class="message is-info">
<div class="message-body">
<!-- svelte-ignore a11y-missing-attribute a11y-click-events-have-key-events -->
Select an existing chat on the sidebar, or
<a
class={!apiKey ? "is-disabled" : ""}
on:click={() => {
activeChatId = addChat();
}}>create a new chat</a
>
</div>
</article>
{/if}

View File

@ -12,7 +12,7 @@
<p class="menu-label">Chats</p>
<ul class="menu-list">
{#if sortedChats.length === 0}
<a class="panel-block">No chats...</a>
<a class="panel-block">No chats yet...</a>
{:else}
<li>
<ul>
@ -34,12 +34,22 @@
</ul>
<p class="menu-label">Actions</p>
<ul class="menu-list">
<li>
<a
class="panel-block {!apiKey ? 'is-disabled' : ''} {activeChatId
? ''
: 'has-background-light'}"
on:click={() => {
activeChatId = null;
}}><span class="greyscale mr-2">🔑</span> API key</a
>
</li>
<li>
<a
class="panel-block {!apiKey ? 'is-disabled' : ''}"
on:click={() => {
activeChatId = addChat();
}}> New chat</a
}}><span class="greyscale mr-2"></span> New chat</a
>
</li>
<li>
@ -48,15 +58,7 @@
on:click={() => {
clearChats();
activeChatId = null;
}}>🗑️ Clear chats</a
>
</li>
<li>
<a
class="panel-block {!apiKey ? 'is-disabled' : ''}"
on:click={() => {
activeChatId = null;
}}>🔙 Back to home</a
}}><span class="greyscale mr-2">🗑️</span> Clear chats</a
>
</li>
</ul>