Move subscription helper in the account line
authorChocobozzz <me@florianbigard.com>
Mon, 30 Jul 2018 09:55:58 +0000 (11:55 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 30 Jul 2018 09:55:58 +0000 (11:55 +0200)
client/src/app/videos/+video-watch/video-watch.component.html
client/src/app/videos/+video-watch/video-watch.component.scss

index 8764d38c7365555378ed795b62dea0cb6c14b3d5..f39b5a94a494227702ea9a428662097534ac1493 100644 (file)
@@ -34,7 +34,6 @@
               <img [src]="video.videoChannelAvatarUrl" alt="Video channel avatar" />
             </a>
             <!-- Here will be the subscribe button -->
-            <my-help helpType="custom" i18n-customHtml customHtml="You can subscribe to this account via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box <strong>@{{video.account.name}}@{{video.account.host}}</strong> and subscribe there. Subscription as a PeerTube user is being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/470'>#470</a>."></my-help>
           </div>
 
           <div class="video-info-by">
@@ -42,6 +41,8 @@
               <span i18n>By {{ video.by }}</span>
               <img [src]="video.accountAvatarUrl" alt="Account avatar" />
             </a>
+
+            <my-help helpType="custom" i18n-customHtml customHtml="You can subscribe to this account via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box <strong>@{{video.account.name}}@{{video.account.host}}</strong> and subscribe there. Subscription as a PeerTube user is being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/470'>#470</a>."></my-help>
           </div>
         </div>
 
index 717b00eb187264acd4e6b58bd6efc317234ce97b..5127687b28ecba166ab7cddf759611e1460c9df9 100644 (file)
             margin: -2px 2px 0 5px;
           }
         }
-
-        my-help {
-          display: inline-block;
-        }
       }
 
-      .video-info-by a {
-        @include disable-default-a-behaviour;
+      .video-info-by {
 
-        display: inline;
-        align-items: center;
-        font-size: 13px;
-        color: #000;
+        a {
+          @include disable-default-a-behaviour;
 
-        span:hover {
-          opacity: 0.8;
-        }
+          display: inline;
+          align-items: center;
+          font-size: 13px;
+          color: #000;
 
-        img {
-          @include avatar(18px);
+          span:hover {
+            opacity: 0.8;
+          }
+
+          img {
+            @include avatar(18px);
 
-          margin-top: -2px;
-          margin-left: 7px;
+            margin-top: -2px;
+            margin-left: 7px;
+          }
+        }
+
+        my-help {
+          position: relative;
+          top: 1px;
+          margin-left: 2px;
         }
       }