Skip to content

Commit

Permalink
feat(client): 导入 *.md 文件时默认启用预览效果,导航栏显示控制 (#1022)
Browse files Browse the repository at this point in the history
* feat: 调整预览模式

* feat: 预览模式

* feat: 添加控制 `toolbar` 显示

* chore: remove assets

* chore(client): upgrade deps
  • Loading branch information
RSS1102 authored Jan 10, 2025
1 parent 5a5e8f9 commit dfb16fe
Show file tree
Hide file tree
Showing 13 changed files with 353 additions and 187 deletions.
1 change: 1 addition & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist/
22 changes: 22 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cherry Markdown Client</title>
<style>
.markdown-preview-only .cherry-toolbar {
display: none;
}

.markdown-preview-only .cherry-sidebar {
display: block !important;
top: 0 !important;
padding-top: 33px !important;
height: auto !important;
}

.markdown-preview-only .cherry-editor {
display: none;
}

.markdown-preview-only .cherry-previewer {
width: 100% !important;
max-height: 100% !important;
display: block !important;
}
</style>
<style>
body {
margin: 0;
Expand Down
6 changes: 3 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"tauri:build": "tauri build"
},
"dependencies": {
"@tauri-apps/api": "^2",
"@tauri-apps/api": "2.2.0",
"@tauri-apps/plugin-dialog": "^2.0.0",
"@tauri-apps/plugin-fs": "~2",
"cherry-markdown": "0.8.50",
"@tauri-apps/plugin-fs": "2.2.0",
"cherry-markdown": "0.8.57",
"pinia": "^2.2.4",
"vue": "^3.3.4"
},
Expand Down
Loading

0 comments on commit dfb16fe

Please sign in to comment.