mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-09 03:27:32 +08:00
fix: 修复vditor高度问题
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user