diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-08-10 15:57:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 15:57:37 +0200 |
commit | 4a53fc8204d5a3a3d5a77b3dfe128f0985153bf8 (patch) | |
tree | 249e48c8ff24b6e5f3f696a49d024a2596f7a7ea /client/src/app/shared/shared-user-settings | |
parent | 207612dff83401a9642f9cb0a63a5a6efcd5f590 (diff) | |
download | PeerTube-4a53fc8204d5a3a3d5a77b3dfe128f0985153bf8.tar.gz PeerTube-4a53fc8204d5a3a3d5a77b3dfe128f0985153bf8.tar.zst PeerTube-4a53fc8204d5a3a3d5a77b3dfe128f0985153bf8.zip |
Add new anchors in my-settings and handle offset sub-menu height (#3032)
* Add anchors setting and handle offset with sub-meu
* Use PeerTube scroll logic
* Add anchor for top my-settings
* Improve scroller with smooth behavior and css offset
* Fix anchor position when using history navigation
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/app/shared/shared-user-settings')
-rw-r--r-- | client/src/app/shared/shared-user-settings/user-video-settings.component.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-user-settings/user-video-settings.component.html b/client/src/app/shared/shared-user-settings/user-video-settings.component.html index 0dda33af2..bb9f59070 100644 --- a/client/src/app/shared/shared-user-settings/user-video-settings.component.html +++ b/client/src/app/shared/shared-user-settings/user-video-settings.component.html | |||
@@ -1,5 +1,6 @@ | |||
1 | <form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> | 1 | <form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> |
2 | <div class="form-group form-group-select"> | 2 | <div class="form-group form-group-select"> |
3 | <div class="anchor" id="video-sensitive-content-policy"></div> <!-- video-sensitive-content-policy anchor --> | ||
3 | <label i18n for="nsfwPolicy">Default policy on videos containing sensitive content</label> | 4 | <label i18n for="nsfwPolicy">Default policy on videos containing sensitive content</label> |
4 | <my-help> | 5 | <my-help> |
5 | <ng-template ptTemplate="customHtml"> | 6 | <ng-template ptTemplate="customHtml"> |
@@ -20,6 +21,7 @@ | |||
20 | </div> | 21 | </div> |
21 | 22 | ||
22 | <div class="form-group form-group-select"> | 23 | <div class="form-group form-group-select"> |
24 | <div class="anchor" id="video-languages-subtitles"></div> <!-- video-languages-subtitles anchor --> | ||
23 | <label i18n for="videoLanguages">Only display videos in the following languages/subtitles</label> | 25 | <label i18n for="videoLanguages">Only display videos in the following languages/subtitles</label> |
24 | <my-help> | 26 | <my-help> |
25 | <ng-template ptTemplate="customHtml"> | 27 | <ng-template ptTemplate="customHtml"> |