Skip to content

Commit

Permalink
pref: add style to preview (#55)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

为瞬间预览增加样式

#### How to test it?

使用一些富文本标签,例如 code、heading、a 等,查看预览之后是否有对应的样式。

#### Which issue(s) this PR fixes:

Fixes #48 

#### Does this PR introduce a user-facing change?
```release-note
为瞬间预览增加样式
```
  • Loading branch information
LIlGG authored Dec 6, 2023
1 parent 55a70a0 commit 248d32d
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 196 deletions.
1 change: 1 addition & 0 deletions console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"npm-run-all": "^4.1.5",
"postcss": "^8.4.21",
"prettier": "^2.8.4",
"sass": "^1.69.5",
"tailwindcss": "^3.2.7",
"typescript": "~4.7.4",
"unplugin-icons": "^0.15.3",
Expand Down
33 changes: 26 additions & 7 deletions console/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion console/src/components/MomentPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const getExtname = (type: string) => {
</div>
</div>
<div
class="moment-preview-html moments-overflow-hidden moments-relative moments-pt-1"
class="moment-preview-html markdown-body moments-overflow-hidden moments-relative moments-pt-1"
>
<div
v-highlight
Expand Down
2 changes: 1 addition & 1 deletion console/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "./styles/tailwind.css";
import "./styles/index.css";
import "./styles/index.scss";
import { definePlugin } from "@halo-dev/console-shared";
import MomentsList from "@/views/MomentsList.vue";
import { markRaw } from "vue";
Expand Down
187 changes: 0 additions & 187 deletions console/src/styles/index.css

This file was deleted.

Loading

0 comments on commit 248d32d

Please sign in to comment.