refac
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<slot />
|
||||
|
||||
<div slot="content">
|
||||
<DropdownMenu className="min-w-[170px] font-primary">
|
||||
<DropdownMenu className="min-w-[170px] ">
|
||||
<button
|
||||
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] transition hover:text-gray-900 dark:hover:text-gray-100"
|
||||
on:click={async () => {
|
||||
|
||||
@@ -907,7 +907,7 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
|
||||
}}
|
||||
>
|
||||
<div class=" text-sm text-gray-500">
|
||||
{$i18n.t('This will delete')} <span class=" font-semibold">{note.title}</span>.
|
||||
{$i18n.t('This will delete')} <span class=" font-normal">{note.title}</span>.
|
||||
</div>
|
||||
</DeleteConfirmDialog>
|
||||
|
||||
@@ -949,7 +949,7 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
|
||||
{/if}
|
||||
|
||||
<input
|
||||
class="w-full text-2xl font-medium bg-transparent outline-hidden"
|
||||
class="w-full text-2xl font-normal bg-transparent outline-hidden"
|
||||
type="text"
|
||||
bind:value={note.title}
|
||||
placeholder={titleGenerating ? $i18n.t('Generating...') : $i18n.t('Title')}
|
||||
@@ -1140,7 +1140,7 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
|
||||
}}
|
||||
>
|
||||
<div
|
||||
class="flex gap-0.5 items-center text-xs font-medium text-gray-500 dark:text-gray-500 w-fit"
|
||||
class="flex gap-0.5 items-center text-xs font-normal text-gray-500 dark:text-gray-500 w-fit"
|
||||
>
|
||||
<button class=" flex items-center gap-1 w-fit py-1 px-1.5 rounded-lg min-w-fit">
|
||||
<!-- check for same date, yesterday, last week, and other -->
|
||||
|
||||
@@ -342,7 +342,7 @@ Based on the user's instruction, update and enhance the existing notes or select
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class=" font-medium text-base flex items-center gap-1">
|
||||
<div class=" font-normal text-base flex items-center gap-1">
|
||||
<div>
|
||||
{$i18n.t('Chat')}
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<div class="flex flex-col gap-1 group">
|
||||
<div class="flex items-center justify-between pt-1">
|
||||
<div class="py-1 text-sm font-semibold uppercase min-w-[6rem] text-left rounded-lg transition">
|
||||
<div class="py-1 text-sm font-normal uppercase min-w-[6rem] text-left rounded-lg transition">
|
||||
{$i18n.t(message.role)}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class=" font-medium text-base flex items-center gap-1">
|
||||
<div class=" font-normal text-base flex items-center gap-1">
|
||||
<div>
|
||||
{$i18n.t('Controls')}
|
||||
</div>
|
||||
@@ -39,7 +39,7 @@
|
||||
<div class="mt-1 px-1.5">
|
||||
<div class="pb-10">
|
||||
{#if files.length > 0}
|
||||
<div class=" text-xs font-medium mb-2">{$i18n.t('Files')}</div>
|
||||
<div class=" text-xs font-normal mb-2">{$i18n.t('Files')}</div>
|
||||
|
||||
<div class="flex flex-col gap-1">
|
||||
{#each files.filter((file) => file.type !== 'image') as file, fileIdx}
|
||||
@@ -87,7 +87,7 @@
|
||||
<hr class="my-2 border-gray-50 dark:border-gray-700/10" />
|
||||
{/if}
|
||||
|
||||
<div class=" text-xs font-medium mb-1">{$i18n.t('Model')}</div>
|
||||
<div class=" text-xs font-normal mb-1">{$i18n.t('Model')}</div>
|
||||
|
||||
<div class="w-full">
|
||||
<select class="w-full bg-transparent text-sm outline-hidden" bind:value={selectedModelId}>
|
||||
|
||||
@@ -335,13 +335,13 @@
|
||||
}}
|
||||
>
|
||||
<div class=" text-sm text-gray-500 truncate">
|
||||
{$i18n.t('This will delete')} <span class=" font-semibold">{selectedNote.title}</span>.
|
||||
{$i18n.t('This will delete')} <span class=" font-normal">{selectedNote.title}</span>.
|
||||
</div>
|
||||
</DeleteConfirmDialog>
|
||||
|
||||
<div class="flex flex-col gap-1 px-1 mt-1.5 mb-2">
|
||||
<div class="flex justify-between items-center">
|
||||
<div class="flex items-center md:self-center text-xl font-medium px-0.5 gap-2 shrink-0">
|
||||
<div class="flex items-center md:self-center text-xl font-normal px-0.5 gap-2 shrink-0">
|
||||
{#if $mobile}
|
||||
<Tooltip content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}>
|
||||
<button
|
||||
@@ -362,14 +362,14 @@
|
||||
{$i18n.t('Notes')}
|
||||
</div>
|
||||
|
||||
<div class="text-lg font-medium text-gray-500 dark:text-gray-500">
|
||||
<div class="text-lg font-normal text-gray-500 dark:text-gray-500">
|
||||
{total ?? ''}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex w-full justify-end gap-1.5">
|
||||
<button
|
||||
class=" px-2 py-1.5 rounded-xl bg-black text-white dark:bg-white dark:text-black transition font-medium text-sm flex items-center"
|
||||
class=" px-2 py-1.5 rounded-xl bg-black text-white dark:bg-white dark:text-black transition font-normal text-sm flex items-center"
|
||||
on:click={async () => {
|
||||
const res = await createNoteHandler(dayjs().format('YYYY-MM-DD'));
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<slot />
|
||||
|
||||
<div slot="content">
|
||||
<DropdownMenu className="min-w-[170px] font-primary">
|
||||
<DropdownMenu className="min-w-[170px] ">
|
||||
<button
|
||||
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] transition hover:text-gray-900 dark:hover:text-gray-100"
|
||||
on:click={async () => {
|
||||
|
||||
Reference in New Issue
Block a user