Skip to content

Commit

Permalink
fix: markdown-body img width
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 10, 2024
1 parent 7a4533e commit 55293d9
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 44 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"stylelint": "^16.2.1",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard-scss": "^13.0.0",
"tsup": "^8.0.1",
"tsup": "^8.0.2",
"tsx": "^4.7.1",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/valaxy-theme-yun/components/YunPostCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const isDesc = ref(true)
const sortedYears = computed(() => {
const y = years.value
const arr = y.sort((a, b) => b - a)
// avoid mutating the original array
return isDesc.value ? arr : [...arr].reverse()
})
</script>
Expand Down
1 change: 1 addition & 0 deletions packages/valaxy-theme-yun/styles/common/markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
img {
margin: 0.5rem auto;
height: auto;
max-width: min(92%, 800px);
}

p {
Expand Down

0 comments on commit 55293d9

Please sign in to comment.