refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2025-08-08 04:37:08 +04:00
parent 867a86b264
commit e2ce735d12
2 changed files with 6 additions and 6 deletions

View file

@ -496,7 +496,7 @@
<div
class="{$showSidebar
? 'md:hidden'
: ''} py-2 px-[5px] flex flex-col justify-between text-black dark:text-white h-full border-e border-gray-50 dark:border-gray-850"
: ''} py-2 px-1.5 flex flex-col justify-between text-black dark:text-white h-full border-e border-gray-50 dark:border-gray-850"
>
<button
class="flex flex-col flex-1 cursor-[e-resize]"
@ -710,7 +710,7 @@
</div>
<div class="pb-1.5">
<div class="px-1.5 flex justify-center text-gray-800 dark:text-gray-200">
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
<a
id="sidebar-new-chat-button"
class="grow flex items-center space-x-3 rounded-lg px-2 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition outline-none"
@ -728,7 +728,7 @@
</a>
</div>
<div class="px-1.5 flex justify-center text-gray-800 dark:text-gray-200">
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
<button
class="grow flex items-center space-x-3 rounded-lg px-2 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition outline-none"
on:click={() => {
@ -747,7 +747,7 @@
</div>
{#if ($config?.features?.enable_notes ?? false) && ($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true))}
<div class="px-1.5 flex justify-center text-gray-800 dark:text-gray-200">
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
<a
class="grow flex items-center space-x-3 rounded-lg px-2 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition"
href="/notes"
@ -766,7 +766,7 @@
{/if}
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.models || $user?.permissions?.workspace?.knowledge || $user?.permissions?.workspace?.prompts || $user?.permissions?.workspace?.tools}
<div class="px-1.5 flex justify-center text-gray-800 dark:text-gray-200">
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
<a
class="grow flex items-center space-x-3 rounded-lg px-2 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition"
href="/workspace"

View file

@ -41,7 +41,7 @@
{@const model = $models.find((model) => model.id === modelId)}
{#if model}
<div
class="px-1.5 flex justify-center text-gray-800 dark:text-gray-200 cursor-grab"
class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200 cursor-grab"
data-id={modelId}
>
<a