fix: force block

This commit is contained in:
Alisa | Side.one 2023-05-20 13:07:21 +08:00
parent b36786c1ee
commit 3ac4bd977b
2 changed files with 9 additions and 2 deletions

View File

@ -41,7 +41,7 @@ const changeOpen = (index: Number) => {
<!-- sidebar -->
<div
class="w-64 fixed z-50 left-0 top-0 bottom-0 overflow-auto bg-base-100 border-r border-gray-100 dark:border-gray-700"
:class="{ block: sidebarShow, 'hidden xl:block': !sidebarShow }"
:class="{ block: sidebarShow, 'hidden force-block': !sidebarShow }"
>
<div class="flex items-center pl-4 py-4 mb-1">
<img class="w-10 h-10" src="../../assets/logo.svg" />

View File

@ -34,3 +34,10 @@
position: relative;
z-index: 2;
}
@media (min-width: 1280px){
.force-block{
display: block !important;
}
}