Skip to content

Commit

Permalink
v2.12.1 - hover highlight (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
briangonzalez authored May 16, 2017
1 parent c907a96 commit a35a29c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
29 changes: 15 additions & 14 deletions app/component/tab-group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
{{ tabGroup.tabs.length }} {{ tabGroup.tabs.length | pluralize('tab') }}
</h2>
<date>
{{ tabGroup.dateAdded | moment('ddd MM/D') }} at
{{ tabGroup.dateAdded | moment('h:mm:ssa') }}
{{ tabGroup.dateAdded | moment('ddd MM/D') }} at {{ tabGroup.dateAdded | moment('h:mm:ssa') }}
</date>

<TabGroupActions :tabGroup="tabGroup"></TabGroupActions>
</header>

<ul>
<li v-for="tab in tabGroup.tabs">
<Favicon :url="tab.url"></Favicon>
Expand All @@ -23,13 +22,13 @@
{{ tab.url | host }}
</span>
</a>

<span class="tab-actions">
<a @click="removeTab(tab)">remove</a>
</span>
</li>
</ul>

</section>
</template>

Expand All @@ -44,29 +43,29 @@ export default {
TabGroupActions
},
props: [
'tabGroup',
'tabGroup'
],
methods: {
removeTab(tab) {
store.dispatch('DELETE_TAB', {
tabGroup: this.tabGroup,
url: tab.url,
});
url: tab.url
})
},
openTab(event, tab) {
event.preventDefault();
chrome.tabs.create({url: tab.url, selected: false});
chrome.tabs.create({ url: tab.url, selected: false })
},
openAndRemoveTab (e, tab) {
e.preventDefault();
openAndRemoveTab(e, tab) {
e.preventDefault()
this.openTab(tab)
this.removeTab(tab)
}
},
computed: {
collapsed () {
return this.tabGroup.collapsed;
collapsed() {
return this.tabGroup.collapsed
}
}
}
Expand All @@ -77,7 +76,9 @@ export default {
@import "../styles/settings";
section {
opacity: 0.65;
margin-bottom: $size-unit * 2.5;
& { transition: all 250ms ease; }
&:hover { opacity: 1 }
}
Expand Down
2 changes: 1 addition & 1 deletion app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "__MSG_appName__",
"short_name": "__MSG_appShortName__",
"description": "__MSG_appDescription__",
"version": "2.12.0",
"version": "2.12.1",
"manifest_version": 2,
"default_locale": "en",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "TidyTab",
"private": true,
"version": "2.12.0",
"version": "2.12.1",
"description": "Tidy those tabs!",
"scripts": {
"start": "npm run dev:chrome",
Expand Down

0 comments on commit a35a29c

Please sign in to comment.