Skip to content

Commit

Permalink
feat(tab-list): expand launchers by default
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Nov 8, 2020
1 parent 3c02d24 commit b512d1e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
5 changes: 5 additions & 0 deletions renderer/components/basic/sortable-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export default {
type: Array,
required: true,
},
disabled: {
type: Boolean,
default: false,
},
},
emits: {
/**
Expand All @@ -44,6 +48,7 @@ export default {
})
function startPressing(startingEvent, index) {
if (props.disabled) return
let cancelPressing
const cancelTimeout = createTimeout(() => {
cancelPressing()
Expand Down
21 changes: 10 additions & 11 deletions renderer/components/tab-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
<div class="launcher-folder">
<div :class="['group-name', { collapsed: isCollapsed }]" @click="toggleCollapsing">
<span class="feather-icon icon-list"></span>
<span class="feather-icon icon-chevrons-down"></span>
</div>
<div class="buttons">
<div
Expand Down Expand Up @@ -125,7 +125,7 @@ export default {
anchors: commas.workspace.useAnchors(),
searcher: null,
width: 176,
isCollapsed: true,
isCollapsed: false,
isFinding: false,
keyword: '',
})
Expand Down Expand Up @@ -273,22 +273,21 @@ export default {
.tab-list .launcher-folder {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 8px 16px;
line-height: 16px;
cursor: pointer;
}
.tab-list .group-name {
flex: auto;
opacity: 1;
transition: opacity 0.2s, color 0.2s;
}
.tab-list .group-name.collapsed {
opacity: 0.5;
transition: opacity 0.2s, color 0.2s, transform 0.2s;
}
.tab-list .group-name:not(.collapsed) {
color: var(--design-magenta);
.tab-list .group-name.collapsed {
color: var(--design-yellow);
transform: rotate(-180deg);
opacity: 1;
}
.tab-list .group-name.collapsed:hover {
.tab-list .group-name:not(.collapsed):hover {
opacity: 1;
}
.tab-list .launcher-folder .buttons {
Expand All @@ -309,7 +308,7 @@ export default {
}
.tab-list .find.active {
opacity: 1;
color: var(--design-blue);
color: var(--design-yellow);
}
.tab-list .find-launcher {
flex-basis: 100%;
Expand Down

0 comments on commit b512d1e

Please sign in to comment.