Skip to content

Commit

Permalink
Merge pull request #178 from TankNee/rebuild/fix
Browse files Browse the repository at this point in the history
[fix]: fix splitter width and adapt the style of editor with.
  • Loading branch information
TankNee authored Jan 3, 2022
2 parents 461b494 + 48cb71f commit 6962536
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cn.memocast.app",
"version": "2.2.2",
"version": "2.2.3",
"description": "An Awesome WizNote Desktop Application",
"productName": "Memocast",
"author": "tanknee <nee@tanknee.cn>",
Expand Down
4 changes: 2 additions & 2 deletions src/libs/muya/themes/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ kbd {

@media not print {
#ag-editor-id {
max-width: 80%;
max-width: 85%;
min-width: 400px;
min-height: 100%;
margin: 0 auto;
padding: 20px 50px 100px 50px;
padding: 20px 35px 100px 35px;
box-sizing: border-box;
}

Expand Down
7 changes: 5 additions & 2 deletions src/pages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<q-page class='flex'>
<q-splitter
v-model='splitterWidthValue'
:limits='[10, 60]'
:limits='splitterLimits'
class='full-width'
unit='%'
separator-class='bg-transparent'
Expand Down Expand Up @@ -196,7 +196,8 @@ export default {
isOutlineShow: false,
isSourceMode: false,
isMindmapMode: false,
splitterWidthValue: 200,
splitterWidthValue: 35,
splitterLimits: [0, 60],
tempNoteData: {},
wordCount: {
word: '0',
Expand Down Expand Up @@ -285,8 +286,10 @@ export default {
noteListVisible: function (val) {
if (!val) {
this.updateStateAndStore({ splitterWidth: this.splitterWidthValue })
this.splitterLimits = [0, 0]
this.splitterWidthValue = 0
} else {
this.splitterLimits = [10, 60]
this.splitterWidthValue = this.splitterWidth
}
}
Expand Down

0 comments on commit 6962536

Please sign in to comment.