Skip to content

Commit 9c02d22

Browse files
authored
Update filebrowser.js
1 parent 2136b9e commit 9c02d22

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

filebrowser.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ async function renderSidebarHTML() {
104104

105105
// show title
106106

107-
sidebarLogo.classList.remove('overflow');
108-
107+
let titleAnimation;
108+
109109
if (contents != '') {
110110

111+
titleAnimation = 'smooth';
112+
111113
// if repo is owned by another user
112114
if (user != loggedUser.login) {
113115

@@ -152,7 +154,7 @@ async function renderSidebarHTML() {
152154

153155
sidebarTitle.children[0].scrollTo({
154156
left: sidebarTitle.children[0].scrollWidth - sidebarTitle.children[0].offsetLeft,
155-
behavior: 'smooth'
157+
behavior: titleAnimation
156158
});
157159

158160

0 commit comments

Comments
 (0)