valaxy-theme-yun 0.12.8 → 0.12.9

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.
Files changed (2) hide show
  1. package/layouts/tags.vue +11 -3
  2. package/package.json +2 -2
package/layouts/tags.vue CHANGED
@@ -46,6 +46,8 @@ const displayTag = (tag: string) => {
46
46
  }
47
47
 
48
48
  const title = usePostTitle(frontmatter)
49
+
50
+ // use flex to fix `overflow-wrap: break-words;` not working in Safari
49
51
  </script>
50
52
 
51
53
  <template>
@@ -62,9 +64,15 @@ const title = usePostTitle(frontmatter)
62
64
  {{ t('counter.tags', Array.from(tags).length) }}
63
65
  </div>
64
66
 
65
- <div text="center" class="break-words">
66
- <span v-for="[key, tag] in Array.from(tags).sort()" :key="key" class="post-tag cursor-pointer" :style="getTagStyle(tag.count)" p="1" @click="displayTag(key.toString())">
67
- #{{ key }}<span text="xs">[{{ tag.count }}]</span>
67
+ <div class="justify-center items-end" flex="~ wrap" gap="1">
68
+ <span
69
+ v-for="[key, tag] in Array.from(tags).sort()"
70
+ :key="key"
71
+ inline-flex my="2"
72
+ class="post-tag cursor-pointer items-baseline leading-4" :style="getTagStyle(tag.count)" p="1" @click="displayTag(key.toString())"
73
+ >
74
+ <span inline-flex>#{{ key }}</span>
75
+ <span inline-flex text="xs">[{{ tag.count }}]</span>
68
76
  </span>
69
77
  </div>
70
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.12.8",
3
+ "version": "0.12.9",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -22,6 +22,6 @@
22
22
  "valaxy-addon-waline": "0.0.8"
23
23
  },
24
24
  "devDependencies": {
25
- "valaxy": "0.12.8"
25
+ "valaxy": "0.12.9"
26
26
  }
27
27
  }