Skip to content

Commit

Permalink
fix: sidebar background
Browse files Browse the repository at this point in the history
  • Loading branch information
ufaboy committed Apr 14, 2024
1 parent b690392 commit a985232
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lib-vue",
"private": true,
"version": "1.7.3",
"version": "1.7.4",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
4 changes: 2 additions & 2 deletions src/components/forms/MediaForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ reset();
<img
:src="getStorageMediaUrl(props.media.file_name, props.media.book_id)"
alt=""
class="mx-auto mb-4 max-h-96 max-w-xs">
<label class="mb-4">
class="mx-auto mb-4 max-h-96 max-w-xs rounded-md">
<label class="w-full mb-4">
<span>File name</span>
<input
v-model="mediaFileName"
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/LayoutSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ onBeforeUnmount(() => {
class="relative flex gap-2">
<TheSidebar
v-model="sidebarCollapsed"
class="fixed left-0 top-0 h-full w-48 overflow-x-hidden overflow-y-scroll"
class="fixed left-0 top-0 z-10 h-full w-48 overflow-x-hidden overflow-y-scroll dark:bg-gray-900"
:class="{ 'w-48': !sidebarCollapsed, 'w-12': sidebarCollapsed }" />
<router-view
:sidebar-collapsed="sidebarCollapsed"
Expand Down
10 changes: 6 additions & 4 deletions src/views/MediaGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ getTotal();
</script>

<template>
<main class="flex flex-wrap gap-3">
<main class="flex flex-wrap gap-3 px-2">
<form
action=""
class="flex w-full items-center gap-4">
Expand Down Expand Up @@ -85,9 +85,11 @@ getTotal();
<div
v-for="dir in filteredMediaList"
:key="dir.bookID">
<h2 class="mb-2">
Book {{ dir.bookID }} {{ dir.bookName }}
</h2>
<RouterLink
:to="{name: 'book-view', params: {id:dir.bookID}}"
class="mb-2 flex">
Book: {{ dir.bookID }} {{ dir.bookName }}
</RouterLink>
<button
v-for="(img, index) in dir.mediaList"
:key="index"
Expand Down

0 comments on commit a985232

Please sign in to comment.