diff --git a/web/src/lib/components/admin-page/settings/machine-learning-settings/machine-learning-settings.svelte b/web/src/lib/components/admin-page/settings/machine-learning-settings/machine-learning-settings.svelte index 6a542d81d4..ba24f3aabd 100644 --- a/web/src/lib/components/admin-page/settings/machine-learning-settings/machine-learning-settings.svelte +++ b/web/src/lib/components/admin-page/settings/machine-learning-settings/machine-learning-settings.svelte @@ -112,8 +112,8 @@ desc="Minimum confidence score for a face to be detected from 0-1. Lower values will detect more faces but may result in false positives." bind:value={config.machineLearning.facialRecognition.minScore} step="0.1" - min="0" - max="1" + min={0} + max={1} disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.facialRecognition.enabled} isEdited={config.machineLearning.facialRecognition.minScore !== savedConfig.machineLearning.facialRecognition.minScore} @@ -125,8 +125,8 @@ desc="Maximum distance between two faces to be considered the same person, ranging from 0-2. Lowering this can prevent labeling two people as the same person, while raising it can prevent labeling the same person as two different people. Note that it is easier to merge two people than to split one person in two, so err on the side of a lower threshold when possible." bind:value={config.machineLearning.facialRecognition.maxDistance} step="0.1" - min="0" - max="2" + min={0} + max={2} disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.facialRecognition.enabled} isEdited={config.machineLearning.facialRecognition.maxDistance !== savedConfig.machineLearning.facialRecognition.maxDistance} @@ -138,7 +138,7 @@ desc="The minimum number of recognized faces for a person to be created. Increasing this makes Facial Recognition more precise at the cost of increasing the chance that a face is not assigned to a person." bind:value={config.machineLearning.facialRecognition.minFaces} step="1" - min="1" + min={1} disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.facialRecognition.enabled} isEdited={config.machineLearning.facialRecognition.minFaces !== savedConfig.machineLearning.facialRecognition.minFaces} diff --git a/web/src/lib/components/asset-viewer/slideshow-bar.svelte b/web/src/lib/components/asset-viewer/slideshow-bar.svelte index c099ae79c4..164b0a7913 100644 --- a/web/src/lib/components/asset-viewer/slideshow-bar.svelte +++ b/web/src/lib/components/asset-viewer/slideshow-bar.svelte @@ -1,23 +1,16 @@
- dispatch('close')} title="Exit Slideshow" /> - {#if $slideshowShuffle} - ($slideshowShuffle = false)} title="Shuffle" /> - {:else} - ($slideshowShuffle = true)} title="No shuffle" /> - {/if} + dispatch('close')} title="Exit Slideshow" /> (progressBarStatus === ProgressBarStatus.Paused ? progressBar.play() : progressBar.pause())} title={progressBarStatus === ProgressBarStatus.Paused ? 'Play' : 'Pause'} /> - dispatch('prev')} title="Previous" /> - dispatch('next')} title="Next" /> + dispatch('prev')} title="Previous" /> + dispatch('next')} title="Next" /> + (showSettings = !showSettings)} title="Next" />
+{#if showSettings} + (showSettings = false)} /> +{/if} +