refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2024-12-19 20:56:16 -08:00
parent ef5a5be60d
commit 50f36a5262
2 changed files with 218 additions and 220 deletions

View File

@ -70,7 +70,9 @@ def query_doc(
limit=k, limit=k,
) )
if result:
log.info(f"query_doc:result {result.ids} {result.metadatas}") log.info(f"query_doc:result {result.ids} {result.metadatas}")
return result return result
except Exception as e: except Exception as e:
print(e) print(e)

View File

@ -576,8 +576,6 @@
</div> </div>
</div> </div>
<hr class=" dark:border-gray-850" />
{#if showTikaServerUrl} {#if showTikaServerUrl}
<div class="flex w-full mt-1"> <div class="flex w-full mt-1">
<div class="flex-1 mr-2"> <div class="flex-1 mr-2">
@ -591,10 +589,11 @@
{/if} {/if}
</div> </div>
<div class=""> <hr class=" dark:border-gray-850" />
<div class="text-sm font-medium mb-1">{$i18n.t('Google Drive')}</div> <div class="text-sm font-medium mb-1">{$i18n.t('Google Drive')}</div>
<div class="my-2"> <div class="">
<div class="flex justify-between items-center text-xs"> <div class="flex justify-between items-center text-xs">
<div class="text-xs font-medium">{$i18n.t('Enable Google Drive')}</div> <div class="text-xs font-medium">{$i18n.t('Enable Google Drive')}</div>
<div> <div>
@ -662,9 +661,7 @@
> >
<Textarea <Textarea
bind:value={querySettings.template} bind:value={querySettings.template}
placeholder={$i18n.t( placeholder={$i18n.t('Leave empty to use the default prompt, or enter a custom prompt')}
'Leave empty to use the default prompt, or enter a custom prompt'
)}
/> />
</Tooltip> </Tooltip>
</div> </div>
@ -854,5 +851,4 @@
{$i18n.t('Save')} {$i18n.t('Save')}
</button> </button>
</div> </div>
</div>
</form> </form>