Improve highlighted comment scrollTo, improve reply comment display
authorRigel Kent <sendmemail@rigelk.eu>
Fri, 10 Apr 2020 14:51:02 +0000 (16:51 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Fri, 10 Apr 2020 14:51:02 +0000 (16:51 +0200)
client/src/app/videos/+video-watch/comment/video-comment-add.component.scss
client/src/app/videos/+video-watch/comment/video-comments.component.html

index b9e8644913399f8c8b85eb47459333ecee0ddb5d..b3725ab94aa170eeab0b069f627df2d2bf0a45bf 100644 (file)
@@ -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;
index 2ab2d4689cb76f7797aa6d2964f777c8da5f748f..a21042f094c45e4b1c8746be1da6c8bf410d7bbc 100644 (file)
@@ -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"