Skip to content

Commit

Permalink
focus on current tabset
Browse files Browse the repository at this point in the history
  • Loading branch information
evandor committed Oct 26, 2023
1 parent d539798 commit cf319d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/SidePanelPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,6 @@ const tabsetCaption = (tabs: Tab[], window: string) => {
return caption
}
const hoveredOver = (tabsetId: string) => hoveredTabset.value === tabsetId
function checkKeystroke(e: KeyboardEvent) {
if (useUiStore().ignoreKeypressListener()) {
return
Expand Down Expand Up @@ -544,9 +542,13 @@ const tabsetIcon = (tabset: Tabset) => {
}
const headerStyle = (tabset: Tabset) => {
const tabsetOpened = _.findIndex([...tabsetExpanded.value.keys()],
(key: string) => (key !== null) && tabsetExpanded.value.get(key)) >= 0
let style = tabsetExpanded.value.get(tabset.id) ?
'border:0 solid grey;border-top-left-radius:4px;border-top-right-radius:4px;' :
'border:0 solid grey;border-radius:4px;'
tabsetOpened ?
'border:0 solid grey;border-radius:4px;opacity:30%;' :
'border:0 solid grey;border-radius:4px;'
if (tabset.color && usePermissionsStore().hasFeature(FeatureIdent.COLOR_TAGS)) {
style = style + 'border-left:4px solid ' + tabset.color
} else {
Expand Down

0 comments on commit cf319d0

Please sign in to comment.