Skip to content

A self-hosted media server and file management system

fix: server cards have poor responsiveness

aminnausin05ffb38415f1
diff --git a/resources/js/components/settings/server/SettingsServerIndexing.vue b/resources/js/components/settings/server/SettingsServerIndexing.vue
index 3e15395f..c0053017 100644
--- a/resources/js/components/settings/server/SettingsServerIndexing.vue
+++ b/resources/js/components/settings/server/SettingsServerIndexing.vue
@@ -118,7 +118,7 @@ watch(
<FormErrorList :errors="form.errors" />
- <div class="flex justify-end gap-2 *:h-8">
+ <div class="flex flex-wrap justify-end gap-2 *:h-8">
<ButtonForm @click="resetForm(serverConfig?.values.scanner)" type="button" variant="reset" :disabled="form.processing"> Reset </ButtonForm>
<ButtonForm variant="submit" :disabled="form.processing" @click="handleSaveScanner"> Save </ButtonForm>
</div>
diff --git a/resources/js/components/settings/server/SettingsServerPerformance.vue b/resources/js/components/settings/server/SettingsServerPerformance.vue
index 6f7e19c0..94ae040d 100644
--- a/resources/js/components/settings/server/SettingsServerPerformance.vue
+++ b/resources/js/components/settings/server/SettingsServerPerformance.vue
@@ -72,7 +72,6 @@ watch(
max: 20,
placeholder: serverConfig?.defaults.performance.max_scan_workers.toString(),
}"
- class="h-8"
/>
</div>
<div class="flex flex-col gap-1">
@@ -86,12 +85,11 @@ watch(
max: 15,
placeholder: serverConfig?.defaults.performance.max_event_workers.toString(),
}"
- class="h-8"
/>
</div>
</div>
- <div class="flex justify-end gap-2">
+ <div class="flex flex-wrap justify-end gap-2">
<ButtonForm variant="reset" class="h-8" :disabled="form.processing" @click="resetForm(serverConfig?.values.performance)"> Reset </ButtonForm>
<ButtonForm variant="submit" class="h-8" :disabled="form.processing" @click="handleSavePerformance"> Save </ButtonForm>
</div>
diff --git a/resources/js/components/settings/server/SettingsServerStorage.vue b/resources/js/components/settings/server/SettingsServerStorage.vue
index 67e0c2de..d422edfd 100644
--- a/resources/js/components/settings/server/SettingsServerStorage.vue
+++ b/resources/js/components/settings/server/SettingsServerStorage.vue
@@ -61,18 +61,18 @@ watch(
<div class="flex flex-col gap-4">
<div class="flex flex-col gap-1">
<SettingsFormLabel for="cache_path" text="Cache path" :subtext="'Temporary files are written here. Point to an SSD to improve speed.'" />
- <FormInput v-model="form.fields.cache_path" :field="{ name: 'cache_path', type: 'text', placeholder: 'storage/cache/' }" class="h-8" />
+ <FormInput v-model="form.fields.cache_path" :field="{ name: 'cache_path', type: 'text', placeholder: 'storage/cache/' }" />
<FormErrorList :errors="form.errors" :field-name="'cache_path'" />
</div>
<div class="flex flex-col gap-1">
<SettingsFormLabel for="metadata_path" text="Metadata path" :subtext="'Metadata files (subtitles, thumbnails, art) are written here.'" />
- <FormInput v-model="form.fields.metadata_path" :field="{ name: 'metadata_path', type: 'text', placeholder: 'storage/metadata/' }" class="h-8" />
+ <FormInput v-model="form.fields.metadata_path" :field="{ name: 'metadata_path', type: 'text', placeholder: 'storage/metadata/' }" />
<FormErrorList :errors="form.errors" :field-name="'metadata_path'" />
</div>
</div>
- <div class="flex justify-end gap-2">
+ <div class="flex flex-wrap justify-end gap-2">
<ButtonForm variant="reset" class="h-8" :disabled="form.processing" @click="resetForm(serverConfig?.values.storage)"> Reset </ButtonForm>
<ButtonForm variant="submit" class="h-8" :disabled="form.processing" @click="handleSavePaths"> Save </ButtonForm>
</div>