Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
403fdf7f
Commit
403fdf7f
authored
Jul 23, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scrolls all the way right on tab load
parent
4070d7de
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
app/assets/javascripts/repo/repo_helper.js
app/assets/javascripts/repo/repo_helper.js
+7
-0
app/assets/javascripts/repo/repo_sidebar.js
app/assets/javascripts/repo/repo_sidebar.js
+2
-0
app/assets/stylesheets/pages/repo.scss
app/assets/stylesheets/pages/repo.scss
+2
-2
No files found.
app/assets/javascripts/repo/repo_helper.js
View file @
403fdf7f
...
...
@@ -179,6 +179,13 @@ const RepoHelper = {
};
},
scrollTabsRight
()
{
// wait for the transition. 0.1 seconds.
setTimeout
(()
=>
{
document
.
getElementById
(
'
tabs
'
).
scrollLeft
=
12000
;
},
200
)
},
dataToListOfFiles
(
data
)
{
const
a
=
[];
...
...
app/assets/javascripts/repo/repo_sidebar.js
View file @
403fdf7f
...
...
@@ -55,6 +55,7 @@ export default class RepoSidebar {
// it works.
Helper
.
getContent
(
file
,
()
=>
{
file
.
loading
=
false
;
Helper
.
scrollTabsRight
();
});
}
}
else
if
(
typeof
file
===
'
string
'
)
{
...
...
@@ -63,6 +64,7 @@ export default class RepoSidebar {
Service
.
url
=
url
;
Helper
.
getContent
(
null
,
()
=>
{
file
.
loading
=
false
;
Helper
.
scrollTabsRight
();
});
}
},
...
...
app/assets/stylesheets/pages/repo.scss
View file @
403fdf7f
...
...
@@ -28,7 +28,7 @@
.panel-right
{
display
:
inline-block
;
width
:
8
5
%
;
width
:
8
0
%
;
.monaco-editor.vs
{
.line-numbers
{
...
...
@@ -165,7 +165,7 @@
&
.sidebar-mini
{
display
:
inline-block
;
vertical-align
:
top
;
width
:
15
%
;
width
:
20
%
;
border-right
:
1px
solid
$white-normal
;
height
:
80vh
;
overflow
:
auto
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment