Skip to content

A self-hosted media server and file management system

chore: code style

aminnausinde82084ee908
diff --git a/resources/js/components/cards/data/LibraryCard.vue b/resources/js/components/cards/data/LibraryCard.vue
index 293b1d26..9b1be967 100644
--- a/resources/js/components/cards/data/LibraryCard.vue
+++ b/resources/js/components/cards/data/LibraryCard.vue
@@ -221,7 +221,7 @@ watch(
</BasePopover>
</span>
</div>
- <div class="text-foreground-1 font-commit-mono mt-1 flex h-full w-full flex-col gap-2 text-xs" v-if="data">
+ <div class="text-foreground-1 mt-1 flex h-full w-full flex-col gap-2 text-xs" v-if="data">
<div class="flex flex-wrap items-start justify-between gap-3 gap-y-1">
<span class="flex gap-2">
<span class="flex items-center gap-1">
@@ -253,14 +253,3 @@ watch(
</section>
</div>
</template>
-
-<style lang="css" scoped>
-img {
- image-rendering: auto;
- image-rendering: crisp-edges;
- image-rendering: pixelated;
-
- /* Safari seems to support, but seems deprecated and does the same thing as the others. */
- image-rendering: -webkit-optimize-contrast;
-}
-</style>
diff --git a/resources/js/components/cards/data/LibraryFolderCard.vue b/resources/js/components/cards/data/LibraryFolderCard.vue
index e3231802..d3185830 100644
--- a/resources/js/components/cards/data/LibraryFolderCard.vue
+++ b/resources/js/components/cards/data/LibraryFolderCard.vue
@@ -128,10 +128,10 @@ const handleToggleDownloads = async (id: number, currentValue: boolean) => {
</BasePopover>
</div>
</div>
- <div class="text-foreground-1 font-commit-mono mt-1 flex size-full flex-col gap-2 text-xs">
+ <div class="text-foreground-1 mt-1 flex size-full flex-col gap-2 text-xs">
<div class="mt-auto flex flex-wrap items-center justify-between gap-3 gap-y-1">
<div class="flex items-center gap-2">
- <span class="flex items-center gap-1" :title="`${data.file_count} ${data.is_majority_audio ? 'Track' : 'Video'}${toPlural(data.file_count)}`">
+ <span class="-ms-0.5 flex items-center gap-1" :title="`${data.file_count} ${data.is_majority_audio ? 'Track' : 'Video'}${toPlural(data.file_count)}`">
<template v-if="data.is_majority_audio">
<IconMusic class="size-3.5" />
{{ data.file_count }}
@@ -174,15 +174,6 @@ const handleToggleDownloads = async (id: number, currentValue: boolean) => {
</template>
<style lang="css" scoped>
-img {
- image-rendering: auto;
- image-rendering: crisp-edges;
- image-rendering: pixelated;
-
- /* Safari seems to support, but seems deprecated and does the same thing as the others. */
- image-rendering: -webkit-optimize-contrast;
-}
-
.data-card {
&:hover .playback-progress-bar {
opacity: 1;
diff --git a/resources/js/components/folders/FolderOverviewSidebar.vue b/resources/js/components/folders/FolderOverviewSidebar.vue
index e352ea1a..50299130 100644
--- a/resources/js/components/folders/FolderOverviewSidebar.vue
+++ b/resources/js/components/folders/FolderOverviewSidebar.vue
@@ -23,7 +23,11 @@ const avgDuration = computed(() => totalDuration.value / (stateFolder.value.file
const watchProgress = computed(() => `${stateFolder.value.videos.reduce((acc, vid) => acc + (vid.completion_count ? 1 : 0), 0)}/${stateFolder.value.file_count}`);
const userInfoRows = computed(() => [
- { title: 'Progress', tooltip: `You have completed ${watchProgress.value} files`, value: watchProgress.value },
+ {
+ title: 'Progress',
+ tooltip: `You have completed ${watchProgress.value} ${stateFolder.value.is_majority_audio ? 'track' : 'video'}s`,
+ value: watchProgress.value,
+ },
{ title: 'Views', value: totalViews },
]);
</script>
diff --git a/resources/js/components/menus/LibraryFolderCardMenu.vue b/resources/js/components/menus/LibraryFolderCardMenu.vue
index 32a1e70e..160bf303 100644
--- a/resources/js/components/menus/LibraryFolderCardMenu.vue
+++ b/resources/js/components/menus/LibraryFolderCardMenu.vue
@@ -75,7 +75,7 @@ const { isAdmin, isAuthenticated } = useAuth();
@click="handleToggleDownloads(data.series.id, data.series.downloads_enabled ?? false)"
:disabled="processing"
>
- <p class="flex-1 text-start">{{ data.series?.downloads_enabled ? 'Disable Downloads' : 'Enable Downloads' }}</p>
+ <p class="flex-1 text-start">{{ data.series?.downloads_enabled ? 'Disable' : 'Enable' }} Downloads</p>
<template #icon> <TablerDownload v-if="data.series?.downloads_enabled" class="size-4" /> <TablerDownloadOff v-else class="size-4" /></template>
</ButtonText>