mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 04:05:39 -04:00
fix(web): remove unnecessary divider in External Library settings (#12583)
* fix(web): remove unnecessary divider in External Library Settings * fix: narrowing
This commit is contained in:
parent
95987c9777
commit
4e08ff6c33
@ -29,13 +29,14 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div in:fade={{ duration: 500 }}>
|
<div in:fade={{ duration: 500 }}>
|
||||||
|
<form autocomplete="off" on:submit|preventDefault>
|
||||||
|
<div class="ml-4 mt-4 flex flex-col gap-4">
|
||||||
<SettingAccordion
|
<SettingAccordion
|
||||||
key="library-watching"
|
key="library-watching"
|
||||||
title={$t('admin.library_watching_settings')}
|
title={$t('admin.library_watching_settings')}
|
||||||
subtitle={$t('admin.library_watching_settings_description')}
|
subtitle={$t('admin.library_watching_settings_description')}
|
||||||
isOpen
|
isOpen
|
||||||
>
|
>
|
||||||
<form autocomplete="off" on:submit|preventDefault>
|
|
||||||
<div class="ml-4 mt-4 flex flex-col gap-4">
|
<div class="ml-4 mt-4 flex flex-col gap-4">
|
||||||
<SettingSwitch
|
<SettingSwitch
|
||||||
title={$t('admin.library_watching_enable_description')}
|
title={$t('admin.library_watching_enable_description')}
|
||||||
@ -43,16 +44,6 @@
|
|||||||
bind:checked={config.library.watch.enabled}
|
bind:checked={config.library.watch.enabled}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ml-4">
|
|
||||||
<SettingButtonsRow
|
|
||||||
onReset={(options) => onReset({ ...options, configKeys: ['library'] })}
|
|
||||||
onSave={() => onSave({ library: config.library })}
|
|
||||||
showResetToDefault={!isEqual(savedConfig.library, defaultConfig.library)}
|
|
||||||
{disabled}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</SettingAccordion>
|
</SettingAccordion>
|
||||||
|
|
||||||
<SettingAccordion
|
<SettingAccordion
|
||||||
@ -61,7 +52,6 @@
|
|||||||
subtitle={$t('admin.library_scanning_description')}
|
subtitle={$t('admin.library_scanning_description')}
|
||||||
isOpen
|
isOpen
|
||||||
>
|
>
|
||||||
<form autocomplete="off" on:submit|preventDefault>
|
|
||||||
<div class="ml-4 mt-4 flex flex-col gap-4">
|
<div class="ml-4 mt-4 flex flex-col gap-4">
|
||||||
<SettingSwitch
|
<SettingSwitch
|
||||||
title={$t('admin.library_scanning_enable_description')}
|
title={$t('admin.library_scanning_enable_description')}
|
||||||
@ -108,8 +98,8 @@
|
|||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
</SettingInputField>
|
</SettingInputField>
|
||||||
</div>
|
</div>
|
||||||
|
</SettingAccordion>
|
||||||
|
|
||||||
<div class="ml-4">
|
|
||||||
<SettingButtonsRow
|
<SettingButtonsRow
|
||||||
onReset={(options) => onReset({ ...options, configKeys: ['library'] })}
|
onReset={(options) => onReset({ ...options, configKeys: ['library'] })}
|
||||||
onSave={() => onSave({ library: config.library })}
|
onSave={() => onSave({ library: config.library })}
|
||||||
@ -118,6 +108,5 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</SettingAccordion>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user