Skip to content

Commit 8e97439

Browse files
committed
fix: transparent drawer & always displayed list button
1 parent b170e6f commit 8e97439

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/app/component/main/Drawer.vue

+5-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ export default {
139139
}
140140
</script>
141141
<style scoped>
142-
.app-drawer {
143-
background: inherit !important;
142+
.theme--light.app-drawer {
143+
background: #fafafa !important;
144+
}
145+
.theme--dark.app-drawer {
146+
background: rgb(48, 48, 48) !important;
144147
}
145148
</style>

src/app/page/Popup.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default {
101101
}
102102
}
103103
</script>
104-
<style lang="scss">
104+
<style lang="scss" scoped>
105105
.list-item-btn-hover {
106106
display: none;
107107
}

src/common/tabs.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const storeTabs = async (tabs, listIndex) => {
6464
if (opts.ignorePinned) tabs = tabs.filter(i => !i.pinned)
6565
if (opts.excludeIllegalURL) tabs = tabs.filter(i => isLegalURL(i.url))
6666
if (tabs.length === 0) return
67-
browser.tabs.remove(tabs.map(i => i.id))
6867
const lists = await storage.getLists()
6968
if (listIndex == null) {
7069
const newList = createNewTabList({tabs})
@@ -85,6 +84,7 @@ const storeTabs = async (tabs, listIndex) => {
8584
}
8685
}
8786
}
87+
return browser.tabs.remove(tabs.map(i => i.id))
8888
}
8989

9090
const storeLeftTabs = async listIndex => storeTabs((await groupTabsInCurrentWindow()).left, listIndex)
@@ -109,10 +109,12 @@ const storeAllTabInAllWindows = async () => {
109109
const windows = await browser.windows.getAll()
110110
const opts = await storage.getOptions()
111111
if (opts.openTabListNoTab) await openTabLists()
112+
const tasks = []
112113
for (const window of windows) {
113-
const tabs = await getAllInWindow(window.id)
114-
await storeTabs(tabs)
114+
const task = getAllInWindow(window.id).then(storeTabs)
115+
tasks.push(task)
115116
}
117+
return Promise.all(tasks)
116118
}
117119

118120
const restoreList = async (list, windowId) => {

0 commit comments

Comments
 (0)