Skip to content

Commit f83061d

Browse files
authored
Merge pull request #11 from virak-cloud/dev2master
fix: correct typo in text content
2 parents abcddf2 + f80c90c commit f83061d

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

docs/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: 'پیمایش کنید',

docs/.vitepress/theme/components/DarkModeImages.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
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'
139
import { useData } from 'vitepress'
14-
import { computed } from 'vue'
1510
const { isDark } = useData()
1611
12+
const mounted = ref(false)
13+
14+
onMounted(() => {
15+
mounted.value = true
16+
})
17+
1718
const isDarkMode = computed(() => {
1819
return isDark.value
1920
})

docs/.vitepress/theme/styles/custom.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626

2727
header.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;

0 commit comments

Comments
 (0)