Skip to content

Commit a3c0a61

Browse files
authored
💅 feat: up toolkit styles (#56)
1 parent fed5fc4 commit a3c0a61

File tree

4 files changed

+12
-30
lines changed

4 files changed

+12
-30
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"url": "https://github.com/pdsuwwz/chatgpt-vue3-light-mvp/issues"
2828
},
2929
"dependencies": {
30-
"@nzoth/toolkit": "^0.0.3",
30+
"@nzoth/toolkit": "^0.0.4",
3131
"@vueuse/core": "^13.0.0",
3232
"axios": "1.8.4",
3333
"dompurify": "^3.2.4",

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/MarkdownPreview/index.vue

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -571,25 +571,5 @@ const emptyPlaceholder = computed(() => {
571571
--at-apply: line-height-26;
572572
}
573573
}
574-
575-
.mermaid-wrapper {
576-
padding: 16px;
577-
border: 1px solid #e2e8f0;
578-
border-radius: 8px;
579-
background-color: #f8fafc;
580-
margin: 16px 0;
581-
box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
582-
overflow: auto;
583-
contain: layout;
584-
transform: translateZ(0);
585-
586-
pre {
587-
font-size: 14px;
588-
color: #64748b;
589-
font-family: monospace;
590-
margin: 0;
591-
}
592-
593-
}
594574
}
595575
</style>

src/components/MarkdownPreview/plugins/markdown.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
transformMermaid
1616
} from '@nzoth/toolkit'
1717

18+
import '@nzoth/toolkit/styles'
19+
1820
const md = new MarkdownIt({
1921
html: true,
2022
linkify: true,

0 commit comments

Comments
 (0)