Skip to content

Commit c3355f2

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

filebrowser.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ async function renderSidebarHTML() {
107107
let titleAnimation;
108108

109109
if (contents != '') {
110-
111-
titleAnimation = 'smooth';
112-
110+
113111
// if repo is owned by another user
114112
if (user != loggedUser.login) {
115113

@@ -122,6 +120,9 @@ async function renderSidebarHTML() {
122120
sidebarLogo.innerText = repo + contents;
123121

124122
}
123+
124+
// animate title
125+
if (sidebarTitle.children[0].scrollLeft > 0) titleAnimation = 'smooth';
125126

126127
} else if (repo != '') {
127128

0 commit comments

Comments
 (0)