diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-06 11:46:11 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-06 11:46:11 +0100 |
commit | a01f107bc436250706d4bc765f45335ee15b8e80 (patch) | |
tree | 51333f833587e6581440ed59837127f03db37204 /client/src/app/app.component.ts | |
parent | c3488a484e421783eb6a3d5990174a545e6088c0 (diff) | |
download | PeerTube-a01f107bc436250706d4bc765f45335ee15b8e80.tar.gz PeerTube-a01f107bc436250706d4bc765f45335ee15b8e80.tar.zst PeerTube-a01f107bc436250706d4bc765f45335ee15b8e80.zip |
Improve client mobile version
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index bef1599fc..9b699fafd 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -57,6 +57,7 @@ export class AppComponent implements OnInit { | |||
57 | } | 57 | } |
58 | 58 | ||
59 | toggleMenu () { | 59 | toggleMenu () { |
60 | window.scrollTo(0, 0) | ||
60 | this.isMenuDisplayed = !this.isMenuDisplayed | 61 | this.isMenuDisplayed = !this.isMenuDisplayed |
61 | } | 62 | } |
62 | 63 | ||
@@ -72,7 +73,7 @@ export class AppComponent implements OnInit { | |||
72 | Object.keys(colSizes).forEach(col => colSizes[col] = 12) | 73 | Object.keys(colSizes).forEach(col => colSizes[col] = 12) |
73 | } | 74 | } |
74 | 75 | ||
75 | const classes = [ 'main-col' ] | 76 | const classes = [] |
76 | Object.keys(colSizes).forEach(col => classes.push(`col-${col}-${colSizes[col]}`)) | 77 | Object.keys(colSizes).forEach(col => classes.push(`col-${col}-${colSizes[col]}`)) |
77 | 78 | ||
78 | return classes | 79 | return classes |