Skip to content

A self-hosted media server and file management system

fix: rounding

aminnausina827b458ade4
diff --git a/resources/js/components/cards/data/LibraryCard.vue b/resources/js/components/cards/data/LibraryCard.vue
index cdac5140..4bbca9e2 100644
--- a/resources/js/components/cards/data/LibraryCard.vue
+++ b/resources/js/components/cards/data/LibraryCard.vue
@@ -118,7 +118,7 @@ watch(
<div
:class="
cn(
- 'data-card group relative flex w-full flex-col rounded-xl shadow-lg ring-1 ring-gray-900/5 [contain-intrinsic-size:auto_260px] sm:[contain-intrinsic-size:auto_280px]',
+ 'data-card group relative flex w-full flex-col rounded-lg shadow-sm ring-1 ring-gray-900/5 [contain-intrinsic-size:auto_260px] sm:[contain-intrinsic-size:auto_280px]',
'transition-input hover:ring-primary-muted hover:dark:ring-primary ring-1 ease-in-out hover:ring-2',
'focus-within:ring-primary-muted dark:focus-within:ring-primary',
)
@@ -126,11 +126,11 @@ watch(
>
<RouterLink :to="`/dashboard/libraries/${data?.id}`" class="peer content-auto h-40 w-full [contain-intrinsic-size:auto_160px] focus:-outline-offset-2" title="View Folders">
<LazyImage
- class="peer mb-auto h-full w-full rounded-t-xl object-cover shadow-xs ring-1 ring-gray-900/5 ring-inset hover:ring-4"
+ class="peer mb-auto h-full w-full rounded-t-lg object-cover shadow-xs ring-1 ring-gray-900/5 ring-inset hover:ring-4"
:src="defaultFolder?.series?.poster_image?.path ?? handleStorageURL(defaultFolder?.series?.thumbnail_url) ?? '/storage/thumbnails/default.webp'"
alt="Folder Cover Art"
/>
- <span class="absolute inset-0 flex h-full w-full flex-col items-end gap-2 rounded-t-xl p-2.5">
+ <span class="absolute inset-0 flex h-full w-full flex-col items-end gap-2 rounded-t-lg p-2.5">
<HoverCard :content-title="'Private Library'" :content="'Only you have access to this library.'" v-if="data?.is_private">
<template #trigger>
<div class="bg-surface-2 text-primary dark:text-foreground-0 ring-r-button size-7 shrink-0 cursor-default rounded-full p-1 ring-1">
diff --git a/resources/js/components/cards/data/LibraryFolderCard.vue b/resources/js/components/cards/data/LibraryFolderCard.vue
index 129dd8ad..8073737a 100644
--- a/resources/js/components/cards/data/LibraryFolderCard.vue
+++ b/resources/js/components/cards/data/LibraryFolderCard.vue
@@ -57,13 +57,13 @@ const handleToggleDownloads = async (id: number, currentValue: boolean) => {
<div
:class="
cn(
- 'data-card group relative flex w-full flex-col rounded-xl shadow-lg ring-1 ring-gray-900/5 [contain-intrinsic-size:auto_260px]',
+ 'data-card group relative flex w-full flex-col rounded-lg shadow-sm ring-1 ring-gray-900/5 [contain-intrinsic-size:auto_260px]',
'transition-input hover:ring-primary-muted hover:dark:ring-primary ring-1 ease-in-out hover:ring-2',
'focus-within:ring-primary-muted dark:focus-within:ring-primary',
)
"
>
- <RouterLink :to="`/${encodeURI(data.path)}`" class="content-auto h-40 w-full rounded-t-xl [contain-intrinsic-size:auto_160px] focus:-outline-offset-2">
+ <RouterLink :to="`/${encodeURI(data.path)}`" class="content-auto h-40 w-full rounded-t-lg [contain-intrinsic-size:auto_160px] focus:-outline-offset-2">
<LazyImage
class="mb-auto h-full w-full object-cover shadow-xs ring-1 ring-gray-900/5"
:src="data?.series?.poster_image?.path ?? handleStorageURL(data?.series?.thumbnail_url) ?? '/storage/thumbnails/default.webp'"
diff --git a/resources/js/views/FolderView.vue b/resources/js/views/FolderView.vue
index 299f9b43..daa18dc3 100644
--- a/resources/js/views/FolderView.vue
+++ b/resources/js/views/FolderView.vue
@@ -230,7 +230,7 @@ provide(
>
<CircumEdit class="size-4" />
</ButtonIcon>
- <BasePopover ref="popover" popoverClass="max-w-38 p-1 rounded-md text-xs" :buttonClass="'size-7 p-0'" :button-component="ButtonIcon">
+ <BasePopover ref="popover" popoverClass="max-w-38 p-1 text-xs" :buttonClass="'size-7 p-0'" :button-component="ButtonIcon">
<template #buttonIcon>
<ProiconsMoreVertical class="size-4" />
</template>