valaxy-theme-hairy 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,13 +20,13 @@ const show = computed(() => {
20
20
  </script>
21
21
 
22
22
  <template>
23
- <div class="HairyNav fixed w-full h-3.125rem top-0 z-20 opacity-0 transition-opacity duration-200" :class="[show && 'opacity-100']">
24
- <div class="mx-auto breakpoint flex relative z-1">
23
+ <div class="HairyNav fixed w-full h-3.125rem lt-sm:h-3.5rem top-0 z-20 opacity-0 transition-opacity duration-200" :class="[show && 'opacity-100']">
24
+ <div class="mx-auto breakpoint flex relative z-1 h-full">
25
25
  <div class="flex items-center lt-sm:order-1 lt-sm:flex-1 justify-center">
26
26
  <HairyNavTitle />
27
27
  </div>
28
28
  <div class="flex items-center sm:flex-1">
29
- <HairyNavMenu class="sm:hidden pl-3 pr-12" />
29
+ <HairyNavMenu class="sm:hidden pl-2 pr-13" />
30
30
  <HairyMenu class="lt-sm:hidden" />
31
31
  </div>
32
32
  <div class="flex-center order-1">
@@ -5,7 +5,7 @@ const { drawerShow } = useContext()
5
5
  </script>
6
6
 
7
7
  <template>
8
- <button class="yun-icon-btn" @click="drawerShow = true">
8
+ <button class="yun-icon-btn lt-sm:text-size-xl" @click="drawerShow = true">
9
9
  <div i="ri-menu-fill" />
10
10
  </button>
11
11
  </template>
@@ -56,7 +56,7 @@ function load() {
56
56
  class="DocSearch DocSearch-Button"
57
57
  aria-label="Search"
58
58
  >
59
- <span class="DocSearch-Button-Container">
59
+ <span class="DocSearch-Button-Container lt-sm:text-size-xl">
60
60
  <svg
61
61
  class="DocSearch-Search-Icon"
62
62
  width="20"
@@ -173,8 +173,8 @@ function load() {
173
173
 
174
174
  .DocSearch-Button .DocSearch-Search-Icon {
175
175
  position: relative;
176
- width: 16px;
177
- height: 16px;
176
+ width: 1em;
177
+ height: 1em;
178
178
  color: var(--hy-c-text-1);
179
179
  fill: currentColor;
180
180
  transition: color 0.5s;
@@ -10,7 +10,7 @@ const themeTitle = computed(() => {
10
10
  </script>
11
11
 
12
12
  <template>
13
- <button class="yun-icon-btn bg-light-1 p-1 dark:bg-transparent rounded-5" :title="themeTitle" :style="{ color: isDark ? '' : '#f1cb64' }" @click="toggleDark()">
13
+ <button class="yun-icon-btn bg-light-1 p-1 dark:bg-transparent rounded-5 lt-sm:text-size-xl" :title="themeTitle" :style="{ color: isDark ? '' : '#f1cb64' }" @click="toggleDark()">
14
14
  <div i="ri-sun-line dark:ri-moon-line" />
15
15
  </button>
16
16
  </template>
@@ -1,13 +1,22 @@
1
1
  <script lang="ts" setup>
2
- import { ElDrawer } from 'element-plus'
3
2
  import 'element-plus/es/components/drawer/style/index'
3
+ import { ElDrawer } from 'element-plus/es/components/drawer/index'
4
+ import { useRoute } from 'vue-router'
5
+ import { computed, watch } from 'vue'
4
6
  import { useContext } from '../hooks/useContext'
5
7
  const { drawerShow } = useContext()
8
+ const route = useRoute()
9
+ const isPost = computed(() => route.fullPath.includes('/posts/'))
10
+
11
+ watch(() => route.fullPath, () => {
12
+ drawerShow.value = false
13
+ })
6
14
  </script>
7
15
 
8
16
  <template>
9
- <el-drawer v-model="drawerShow" size="auto" @close="drawerShow = false">
10
- <HairyUserCard />
17
+ <el-drawer v-model="drawerShow" direction="ltr" size="auto" @close="drawerShow = false">
18
+ <HairyUserTab v-if="isPost" />
19
+ <HairyUserCard v-else />
11
20
  <div class="dark:hidden absolute inset-0 bg-white bg-opacity-85 blur-5" />
12
21
  </el-drawer>
13
22
  </template>
@@ -15,21 +24,21 @@ const { drawerShow } = useContext()
15
24
  <style lang="scss">
16
25
  .el-drawer {
17
26
  .el-drawer__header {
18
- position: relative;
19
- z-index: 1;
27
+ display: none;
20
28
  }
21
29
 
22
30
  background-color: transparent;
23
31
  .el-icon.el-drawer__close {
24
32
  font-size: 24px;
25
33
  }
26
- @media (max-width: 420px) {
34
+ @media (max-width: 375px) {
27
35
  width: 100% !important;
28
36
  }
29
37
  }
30
38
  .dark {
31
39
  .el-drawer {
32
40
  background: radial-gradient(black, transparent);
41
+
33
42
  }
34
43
  }
35
44
  </style>
@@ -140,7 +140,8 @@ class RENDERER {
140
140
  if (index < 0 || index >= this.points.length)
141
141
  return
142
142
 
143
- this.points[index].interfere(y, velocity)
143
+ if (this.points[index])
144
+ this.points[index].interfere(y, velocity)
144
145
  }
145
146
 
146
147
  reverseVertical() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-hairy",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "packageManager": "pnpm@7.5.0",
5
5
  "author": {
6
6
  "email": "wwu710632@gmail.com",