Skip to content

A self-hosted media server and file management system

fix: extra margin on sidebar cards that misallign with content card

aminnausina70cc5140502
diff --git a/resources/js/components/panels/NavBar.vue b/resources/js/components/panels/NavBar.vue
index 3d0982ff..71ed4cdf 100755
--- a/resources/js/components/panels/NavBar.vue
+++ b/resources/js/components/panels/NavBar.vue
@@ -35,7 +35,7 @@ const toggleDropdown = () => {
<template #trigger
><button
id="user-header"
- class="flex gap-2 text-2xl hover:text-violet-600 items-center justify-center capitalize h-8"
+ class="flex gap-2 text-2xl hover:text-violet-600 dark:hover:text-violet-500 items-center justify-center capitalize h-8"
@click="toggleDropdown"
aria-haspopup="menu"
:aria-expanded="showDropdown ? 'true' : 'false'"
diff --git a/resources/js/components/panels/VideoSidebar.vue b/resources/js/components/panels/VideoSidebar.vue
index 4ea8ebb6..9f9ca6f1 100755
--- a/resources/js/components/panels/VideoSidebar.vue
+++ b/resources/js/components/panels/VideoSidebar.vue
@@ -66,23 +66,23 @@ watch(
<hr class="" />
</div>
- <section v-if="selectedSideBar === 'folders'" id="list-content-folders" class="flex gap-2 flex-wrap">
- <TableBase
- :data="stateDirectory.folders"
- :row="FolderCard"
- :clickAction="handleFolderAction"
- :useToolbar="false"
- :startAscending="true"
- :row-attributes="{
- categoryName: stateDirectory.name,
- stateFolderName: stateFolder?.name,
- }"
- :items-per-page="10"
- :max-visible-pages="3"
- :pagination-class="'!justify-center !flex-col-reverse'"
- :use-pagination-icons="true"
- />
- </section>
+ <TableBase
+ v-if="selectedSideBar === 'folders'"
+ id="list-content-folders"
+ :data="stateDirectory.folders"
+ :row="FolderCard"
+ :clickAction="handleFolderAction"
+ :useToolbar="false"
+ :startAscending="true"
+ :row-attributes="{
+ categoryName: stateDirectory.name,
+ stateFolderName: stateFolder?.name,
+ }"
+ :items-per-page="10"
+ :max-visible-pages="3"
+ :pagination-class="'!justify-center !flex-col-reverse'"
+ :use-pagination-icons="true"
+ />
<section v-if="selectedSideBar === 'history'" id="list-content-history" class="flex gap-2 flex-wrap">
<RecordCard v-for="(record, index) in stateRecords.slice(0, 10)" :key="record.id" :record="record" :index="index" @clickAction="handleShare" />
<ButtonText
diff --git a/resources/js/layouts/LayoutBase.vue b/resources/js/layouts/LayoutBase.vue
index 6e99b80c..bf550c43 100755
--- a/resources/js/layouts/LayoutBase.vue
+++ b/resources/js/layouts/LayoutBase.vue
@@ -14,7 +14,7 @@ const { selectedSideBar, sideBarTarget } = storeToRefs(useAppStore());
<section
id="left-card"
:class="[
- `col-span-1 lg:col-span-2 2xl:col-span-1 h-fit order-2 lg:order-1 bg-primary-900 dark:bg-primary-dark-900 sm:shadow-xl sm:rounded-2xl space-y-2 sm:scroll-mt-6 ring-gray-900/5`,
+ `col-span-1 lg:col-span-2 2xl:col-span-1 h-fit order-2 lg:order-1 bg-primary-900 dark:bg-primary-dark-900 sm:shadow-xl sm:rounded-2xl sm:scroll-mt-6 ring-gray-900/5`,
`${selectedSideBar && sideBarTarget === 'left-card' ? 'sm:ring-1' : 'hidden lg:block lg:invisible'}`,
'sm:p-3 flex flex-col gap-3',
]"
@@ -34,7 +34,7 @@ const { selectedSideBar, sideBarTarget } = storeToRefs(useAppStore());
<section
id="list-card"
:class="[
- `col-span-1 lg:col-span-2 2xl:col-span-1 h-fit order-3 bg-primary-900 dark:bg-primary-dark-900 sm:shadow-xl sm:rounded-2xl space-y-2 sm:scroll-mt-6 ring-gray-900/5`,
+ `col-span-1 lg:col-span-2 2xl:col-span-1 h-fit order-3 bg-primary-900 dark:bg-primary-dark-900 sm:shadow-xl sm:rounded-2xl sm:scroll-mt-6 ring-gray-900/5`,
`${selectedSideBar && sideBarTarget === 'list-card' ? 'sm:ring-1' : 'hidden'}`,
'sm:p-3 flex flex-col gap-3',
]"