Skip to content

Commit fee69de

Browse files
committed
Update filebrowser.js
1 parent 2b0f289 commit fee69de

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

filebrowser.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,11 +1846,18 @@ sidebarBranch.addEventListener('click', () => {
18461846
sidebarBranch.classList.toggle('active');
18471847

18481848
if (branchMenu.classList.contains('visible')) {
1849-
1850-
// move branch menu to icon
1851-
onNextFrame(() => {
1849+
1850+
if (!isSafari) {
1851+
1852+
// move branch menu to icon
18521853
moveElToEl(branchMenu, sidebarBranch, 13);
1853-
});
1854+
1855+
} else {
1856+
1857+
// move branch menu to icon
1858+
moveElToEl(branchMenu, sidebarBranch, 23);
1859+
1860+
}
18541861

18551862
branchMenu.classList.add('top-margin');
18561863

0 commit comments

Comments
 (0)