Skip to content

Commit

Permalink
[*] Fix markdown css
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Feb 4, 2025
1 parent c5e7d8e commit 3464339
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@vicons/ionicons5": "^0.13.0",
"@vicons/material": "^0.13.0",
"axios": "^1.7.9",
"github-markdown-css": "^5.8.1",
"highlight.js": "^11.10.0",
"js-cookie": "^3.0.5",
"json": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
filter: grayscale(1);
}*/

@import "tailwindcss";
@import 'tailwindcss';

* {
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:bordered="false"
:segmented="{ content: 'soft', footer: 'soft' }"
>
<n-p v-html="announcementHtml"></n-p>
<n-text class="markdown-body" v-html="announcementHtml"></n-text>
</n-modal>
<n-space justify="space-between">
<n-gradient-text
Expand Down
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createApp } from 'vue'
import '@/assets/style.css'
import '@/assets/twemoji-amazing.css'
import 'github-markdown-css/github-markdown.css'
import App from './App.vue'
import router from '@router'
import axios from 'axios'
Expand Down
4 changes: 2 additions & 2 deletions src/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<n-grid-item span="0:3 600:2">
<n-card title="公告" size="large">
<n-spin :show="broadcastLoading">
<n-text v-html="broadcastHtml" id="boardrcast"></n-text>
<n-text class="markdown-body" v-html="broadcastHtml" id="boardrcast"></n-text>
</n-spin>
<br />
</n-card>
Expand Down Expand Up @@ -189,7 +189,7 @@ const broadcastHtml = ref('')
const broadcastLoading = ref(true)
onMounted(async () => {
let result = await notice.getNotice()
const result = await notice.getNotice()
broadcastHtml.value = result.broadcast
broadcastLoading.value = false
})
Expand Down

0 comments on commit 3464339

Please sign in to comment.