mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: update github branch switcher selectors
This commit is contained in:
parent
d7d4c4a8a7
commit
e62324bb97
2 changed files with 9 additions and 4 deletions
|
|
@ -11,7 +11,12 @@ const selectors = {
|
|||
normal: {
|
||||
reactApp: `react-app[app-name="react-code-view"] [data-target="react-app.reactRoot"]`,
|
||||
codeTab: '#code-tab',
|
||||
branchSwitcher: [`summary[title="Switch branches or tags"]`, `#branch-select-menu`].join(),
|
||||
branchSwitcher: [
|
||||
`summary[title="Switch branches or tags"]`,
|
||||
`#branch-select-menu`,
|
||||
`#branch-picker-repos-header-ref-selector`,
|
||||
`#branch-picker-repos-header-ref-selector-wide`,
|
||||
].join(),
|
||||
fileNavigation: `.file-navigation`,
|
||||
breadcrumbs: `[data-testid="breadcrumbs"]`,
|
||||
breadcrumbsFilename: `[data-testid="breadcrumbs-filename"]`,
|
||||
|
|
|
|||
|
|
@ -169,9 +169,9 @@ export const GitHub: Platform = {
|
|||
},
|
||||
shouldExpandSideBar() {
|
||||
return Boolean(
|
||||
(DOMHelper.isInCodePage() && !DOMHelper.isNativePRFileTreeShown()) ||
|
||||
URLHelper.isInCommitPage() ||
|
||||
(URLHelper.isInPullPage() && !DOMHelper.isNativePRFileTreeShown()),
|
||||
(DOMHelper.isInCodePage() || URLHelper.isInCommitPage() || URLHelper.isInPullPage()) &&
|
||||
!DOMHelper.isNativeFileTreeShown() &&
|
||||
!DOMHelper.isNativePRFileTreeShown(),
|
||||
)
|
||||
},
|
||||
shouldExpandAll() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue