Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Improve highlighted comment scrollTo, improve reply comment display

Rigel Kentb7e216811574
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.scss b/client/src/app/videos/+video-watch/comment/video-comment-add.component.scss
index b9e8644913..b3725ab94a 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.scss
+++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.scss
@@ -36,6 +36,12 @@ form {
button {
@include peertube-button;
+ @include disable-outline;
+ @include disable-default-a-behaviour;
+
+ &:not(:last-child) {
+ margin-right: .5rem;
+ }
&:last-child {
@include orange-button;
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.html b/client/src/app/videos/+video-watch/comment/video-comments.component.html
index 2ab2d4689c..a21042f094 100644
--- a/client/src/app/videos/+video-watch/comment/video-comments.component.html
+++ b/client/src/app/videos/+video-watch/comment/video-comments.component.html
@@ -38,7 +38,8 @@
(nearOfBottom)="onNearOfBottom()"
[dataObservable]="onDataSubject.asObservable()"
>
- <div #commentHighlightBlock id="highlighted-comment">
+ <div>
+ <div class="anchor" #commentHighlightBlock id="highlighted-comment"></div>
<my-video-comment
*ngIf="highlightedThread"
[comment]="highlightedThread"