Skip to content

Commit

Permalink
feat: adjust style details
Browse files Browse the repository at this point in the history
  • Loading branch information
WRXinYue committed Oct 2, 2024
1 parent d5952da commit bd47ff8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">valaxy-theme-sakura</h1>
<pre align="center">
A simple, personalized, and cute anime-style blog theme 💖
A simple, personalized, and cute anime-style blog theme ~(∠・ω< )⌒★
</pre>

<p align="center">
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">valaxy-theme-sakura</h1>
<pre align="center">
一个简单、个性化、可爱的动漫风格博客主题 💖
一个简单、个性化、可爱的动漫风格博客主题 Ciallo~(∠・ω< )⌒★
</pre>

<p align="center">
Expand Down
10 changes: 5 additions & 5 deletions docs/pages/examples/gallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ themes:
siteImage: https://valaxy-theme-sakura.s3.bitiful.net/demo.png
siteExampleUrl: https://sakura.wrxinyue.org/
tags:
- yun
- light
- sakura
- name: Valaxy sakura theme docs
desc: 没错本文档也是Sakura主题
siteImage: https://common.s3.bitiful.net/snapshot/2024-04-11_22-56_1.png
siteExampleUrl: https://sakura.valaxy.site/
tags:
- starter
- template
- name: default
desc: 默认安装样式
siteImage: https://common.s3.bitiful.net/snapshot/2024-09-30.png
siteExampleUrl: https://sakura.default.wrxinyue.org/
---

## Sakura 主题橱窗
Expand Down
6 changes: 3 additions & 3 deletions theme/components/SakuraSideBarToggleButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { onMounted, watch } from 'vue'
import { useStorage } from '@vueuse/core'
import { useSakuraAppStore } from '../stores'
const { persistence, initialState } = withDefaults(defineProps<{
const props = withDefaults(defineProps<{
persistence?: boolean
initialState?: boolean
}>(), {
Expand All @@ -13,10 +13,10 @@ const { persistence, initialState } = withDefaults(defineProps<{
const sakuraAppStore = useSakuraAppStore()
const sidebarOpen = useStorage('sidebarOpen', initialState)
const sidebarOpen = useStorage('sidebarOpen', props.initialState)
onMounted(() => {
if (persistence)
if (props.persistence)
sakuraAppStore.sidebar.isOpen = sidebarOpen.value
sidebarOpen.value = sakuraAppStore.sidebar.isOpen
Expand Down
2 changes: 1 addition & 1 deletion theme/components/themes/ArticleThemeGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const { link, src, date } = defineProps({
bg-base relative block of-hidden transition-all duration-500 :to="link" :target="target" rel="noopener"
>
<video v-if="src && isVideoUrl(src)" :src="src" autoplay loop muted playsinline w-full border="b base" />
<SakuraImageCard v-else :style="{ height }" :src="src" :to="link" />
<SakuraImageCard v-else :style="{ height }" :src="src" :to="link" @click.prevent />

<div class="prose-sm m0 h-150px max-w-none bg-$st-c-bg p4 pb3 prose">
<slot>
Expand Down
2 changes: 1 addition & 1 deletion theme/components/themes/ArticleThemeMasonry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const { link, src, date } = defineProps({
bg-base relative block of-hidden transition-all duration-500 :to="link" :target="target"
>
<video v-if="src && isVideoUrl(src)" :src="src" autoplay loop muted playsinline w-full border="b base" />
<SakuraImageCard v-else :src="src" :to="link" />
<SakuraImageCard v-else :src="src" :to="link" @click.prevent />

<div class="prose-sm m0 max-w-none bg-$st-c-bg p4 pb3 prose">
<slot>
Expand Down
2 changes: 1 addition & 1 deletion theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valaxy-theme-sakura",
"version": "0.6.8-alpha.3",
"version": "0.6.8",
"packageManager": "[email protected]",
"author": {
"email": "[email protected]",
Expand Down

0 comments on commit bd47ff8

Please sign in to comment.