Commit 403fdf7f authored by Jacob Schatz's avatar Jacob Schatz

Scrolls all the way right on tab load

parent 4070d7de
...@@ -179,6 +179,13 @@ const RepoHelper = { ...@@ -179,6 +179,13 @@ const RepoHelper = {
}; };
}, },
scrollTabsRight() {
// wait for the transition. 0.1 seconds.
setTimeout(() => {
document.getElementById('tabs').scrollLeft = 12000;
}, 200)
},
dataToListOfFiles(data) { dataToListOfFiles(data) {
const a = []; const a = [];
......
...@@ -55,6 +55,7 @@ export default class RepoSidebar { ...@@ -55,6 +55,7 @@ export default class RepoSidebar {
// it works. // it works.
Helper.getContent(file, () => { Helper.getContent(file, () => {
file.loading = false; file.loading = false;
Helper.scrollTabsRight();
}); });
} }
} else if (typeof file === 'string') { } else if (typeof file === 'string') {
...@@ -63,6 +64,7 @@ export default class RepoSidebar { ...@@ -63,6 +64,7 @@ export default class RepoSidebar {
Service.url = url; Service.url = url;
Helper.getContent(null, () => { Helper.getContent(null, () => {
file.loading = false; file.loading = false;
Helper.scrollTabsRight();
}); });
} }
}, },
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
.panel-right { .panel-right {
display: inline-block; display: inline-block;
width: 85%; width: 80%;
.monaco-editor.vs { .monaco-editor.vs {
.line-numbers { .line-numbers {
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
&.sidebar-mini { &.sidebar-mini {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
width: 15%; width: 20%;
border-right: 1px solid $white-normal; border-right: 1px solid $white-normal;
height: 80vh; height: 80vh;
overflow: auto; overflow: auto;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment