Skip to content

Commit

Permalink
fix: search item clicked wont expanse list & etc.
Browse files Browse the repository at this point in the history
 - search item clicked wont expanse list (fixes cnwangjie#85)
 - context menus handler is not a function (fixes cnwangjie#74)
 - date collision with title (fixes cnwangjie#86)
  • Loading branch information
cnwangjie committed Jan 17, 2019
1 parent 4be85b1 commit 98f9a0b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### v1.3.12 1/17/2018

- fix: search item clicked wont expanse list
- fix: context menus handler is not a function
- fix: date collision with title

### v1.3.11 10/13/2018

- change: refine i18n strings
Expand Down
5 changes: 2 additions & 3 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__MSG_ext_name__",
"version": "1.3.11",
"version": "1.3.12",
"default_locale": "en",
"description": "__MSG_ext_desc__",
"author": "WangJie <[email protected]>",
Expand All @@ -13,8 +13,7 @@
"background": {
"scripts": [
"background.js"
],
"persistent": false
]
},
"commands": {
"store-selected-tabs": {
Expand Down
25 changes: 17 additions & 8 deletions src/page/DetailList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
ref="list"
>
<v-layout slot="header" row spacer>
<v-flex no-wrap md7 lg4>
<v-flex no-wrap xs10>

<v-menu open-on-hover top offset-y>
<v-chip
Expand All @@ -61,18 +61,19 @@
</v-card>
</v-menu>
<strong class="grey--text date">{{ __('ui_created') }} <dynamic-time v-model="list.time"></dynamic-time></strong>
</v-flex>
<v-flex no-wrap md6 lg9 @keydown.enter="saveTitle(listIndex)">
<v-text-field
class="title-editor"
autofocus
v-if="list.titleEditing"
@blur="saveTitle(listIndex)"
@keydown.enter="saveTitle(listIndex)"
@click.prevent.stop
full-width
@b-lur="saveTitle(listIndex)"
v-model="list.title"
single-line
hide-details
></v-text-field>
<strong class="list-title" v-else :class="list.color ? list.color + '--text' : ''">{{ list.title }}</strong>
<div class="list-title" v-else :class="list.color ? list.color + '--text' : ''">{{ list.title }}</div>
</v-flex>
<v-flex xs2 class="text-xs-right">
<v-btn :title="__('ui_title_down_btn')" @click.stop="moveListDown(listIndex)" flat icon class="icon-in-title" :disabled="listIndex === lists.length - 1">
Expand Down Expand Up @@ -236,11 +237,11 @@ export default {
offset: -50,
easing: 'easeInOutCubic',
}
if (item.tabIndex) {
if (item.tabIndex == null) {
this.$vuetify.goTo(this.$refs.list[item.listIndex], opt)
} else {
this.expandList(true, item.listIndex)
this.$vuetify.goTo(this.$refs[`list-${item.listIndex}-tab`][item.tabIndex], opt)
} else {
this.$vuetify.goTo(this.$refs.list[item.listIndex], opt)
}
}
},
Expand Down Expand Up @@ -401,10 +402,18 @@ export default {
}
.title-editor {
padding: 0;
display: inline-flex;
width: 80%;
font-size: 12px;
:global(.v-input__control) {
padding: 0 !important;
}
}
.list-title {
display: inline-block;
font-size: 100%;
line-height: 34px;
padding: 0 12px;
}
.tab-list {
.icon-in-title {
Expand Down

0 comments on commit 98f9a0b

Please sign in to comment.