From a54991da4224534bf4beaf994d99e4ce5a0a54f7 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 2 Sep 2018 19:22:34 +0200 Subject: make left menu show the scrollbar on hover/focus add hotkey to the overview page --- client/src/app/app.component.ts | 4 ++++ client/src/app/menu/menu.component.scss | 6 +++++- client/src/app/videos/+video-watch/video-watch.component.html | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index a69f419be..7bab2e2fd 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -132,6 +132,10 @@ export class AppComponent implements OnInit { this.router.navigate([ '/videos/subscriptions' ]) return false }, undefined, 'Go to the subscriptions videos page'), + new Hotkey('g+o', (event: KeyboardEvent): boolean => { + this.router.navigate([ '/videos/overview' ]) + return false + }, undefined, 'Go to the videos overview page'), new Hotkey('g+t', (event: KeyboardEvent): boolean => { this.router.navigate([ '/videos/trending' ]) return false diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index f8c7d8519..941c208e2 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss @@ -18,12 +18,16 @@ menu { overflow: hidden; z-index: 1000; color: $menu-color; - overflow-y: auto; display: flex; flex-direction: column; + &:focus, &:hover { + overflow-y: auto; + } + .top-menu { flex-grow: 1; + width: $menu-width; } .logged-in-block { diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html index c6118b763..7dbc96bf4 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html @@ -208,7 +208,7 @@
Friendly Reminder: - the sharing system used by this video implies that some technical information about your system (such as a public IP address) can be sent to other peers. + the sharing system used for this video implies that some technical information about your system (such as a public IP address) can be sent to other peers. More information
-- cgit v1.2.3