fix: 修复vditor高度问题

This commit is contained in:
tim
2025-08-06 19:47:51 +08:00
parent 9621efd282
commit 3de6b89cc4
2 changed files with 8 additions and 2 deletions

View File

@@ -123,7 +123,6 @@ export default {
<style scoped> <style scoped>
.post-editor-container { .post-editor-container {
border: 1px solid var(--normal-border-color);
position: relative; position: relative;
min-height: 200px; min-height: 200px;
} }
@@ -141,4 +140,11 @@ export default {
pointer-events: all; pointer-events: all;
z-index: 10; z-index: 10;
} }
@media (max-width: 768px) {
.post-editor-container {
min-height: 100px;
}
}
</style> </style>

View File

@@ -40,7 +40,7 @@ export function createVditor(editorId, options = {}) {
const isMobile = window.innerWidth <= 768 const isMobile = window.innerWidth <= 768
const toolbar = isMobile const toolbar = isMobile
? ['emoji', 'bold', 'italic', 'strike', '|', 'link', 'upload'] ? ['emoji', 'upload']
: [ : [
'emoji', 'emoji',
'bold', 'bold',