File tree Expand file tree Collapse file tree 3 files changed +15
-13
lines changed
Expand file tree Collapse file tree 3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export default defineConfig({
6363 displayDetails : 'نمایش جزئیات' ,
6464 resetButtonTitle : 'پاک کردن متن جستجو' ,
6565 backButtonTitle : 'بازگشت' ,
66- noResultsText : 'نتیجه ای برای جسنجوی شما پیدا نشد :(' ,
66+ noResultsText : 'نتیجه ای برای جستجوی شما پیدا نشد :(' ,
6767 footer : {
6868 selectText : 'انتخاب کنید' ,
6969 navigateText : 'پیمایش کنید' ,
Original file line number Diff line number Diff line change 11<template >
2- <div >
3- <div v-if =" isDarkMode" >
4- <img width =" 100%" height =" auto" data-zoomable :src =" darkSrc" :alt =" alt" />
5- </div >
6- <div v-else >
7- <img data-zoomable :src =" lightSrc" :alt =" alt" />
8- </div >
2+ <div v-if =" mounted" >
3+ <img width =" 100%" height =" auto" data-zoomable :src =" isDarkMode ? darkSrc : lightSrc" :alt =" alt" />
94 </div >
105</template >
116
127<script setup>
8+ import { ref , onMounted , computed } from ' vue'
139import { useData } from ' vitepress'
14- import { computed } from ' vue'
1510const { isDark } = useData ()
1611
12+ const mounted = ref (false )
13+
14+ onMounted (() => {
15+ mounted .value = true
16+ })
17+
1718const isDarkMode = computed (() => {
1819 return isDark .value
1920})
Original file line number Diff line number Diff line change 2525}
2626
2727header .VPNav .title .logo {
28- height : 35px !important ;
28+ height : 35px !important ;
2929}
3030
3131/* Define the custom font for RTL */
@@ -58,9 +58,6 @@ header.VPNav .title .logo {
5858 transform : scaleX (-1 );
5959 }
6060
61- # VPSidebarNav .VPSidebarItem .collapsed .caret .caret-icon {
62- transform : scaleX (-1 );
63- }
6461
6562 .search-input {
6663 padding : 6px 12px ;
@@ -113,6 +110,10 @@ header.VPNav .title .logo {
113110 padding-right : unset;
114111 }
115112
113+ # VPSidebarNav .VPSidebarItem .collapsed .caret .caret-icon {
114+ transform : rotate (0deg );
115+ }
116+
116117 @media only screen and (width > 960px) {
117118 .VPSidebar {
118119 inset-inline-start : 0 !important ;
You can’t perform that action at this time.
0 commit comments