mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
feat: enable auto expand if native PR file tree is collapsed
This commit is contained in:
parent
8dbc723b53
commit
1d733fb1cf
1 changed files with 5 additions and 1 deletions
|
|
@ -271,7 +271,11 @@ export function getPath() {
|
|||
}
|
||||
|
||||
export function isNativePRFileTreeShown() {
|
||||
return $('file-tree[data-target="diff-layout.fileTree"]')
|
||||
return $('file-tree[data-target="diff-layout.fileTree"]', ele => {
|
||||
// It would be set `display: hidden;` when collapsed
|
||||
const { width, height } = ele.getBoundingClientRect()
|
||||
return width * height > 0
|
||||
})
|
||||
}
|
||||
|
||||
export function selectEnterpriseStatHeader() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue