We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2136b9e commit 9c02d22Copy full SHA for 9c02d22
filebrowser.js
@@ -104,10 +104,12 @@ async function renderSidebarHTML() {
104
105
// show title
106
107
- sidebarLogo.classList.remove('overflow');
108
-
+ let titleAnimation;
+
109
if (contents != '') {
110
111
+ titleAnimation = 'smooth';
112
113
// if repo is owned by another user
114
if (user != loggedUser.login) {
115
@@ -152,7 +154,7 @@ async function renderSidebarHTML() {
152
154
153
155
sidebarTitle.children[0].scrollTo({
156
left: sidebarTitle.children[0].scrollWidth - sidebarTitle.children[0].offsetLeft,
- behavior: 'smooth'
157
+ behavior: titleAnimation
158
});
159
160
0 commit comments