Add link to video in update view and smooth progress bar repositioning
authorRigel Kent <sendmemail@rigelk.eu>
Mon, 13 Jan 2020 21:14:04 +0000 (22:14 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Mon, 13 Jan 2020 21:14:04 +0000 (22:14 +0100)
client/src/app/videos/+video-edit/shared/video-edit.component.scss
client/src/app/videos/+video-edit/video-update.component.html
client/src/app/videos/+video-edit/video-update.component.ts
client/src/sass/player/peertube-skin.scss

index 3d57e9152aca084157fe1796f879f141f567feaa..144914731943fa7bc5edc9ad69bfacca7d9080d4 100644 (file)
@@ -5,6 +5,15 @@
   @include peertube-select-container(auto);
 }
 
+.title-page a {
+  color: var(--mainForegroundColor);
+
+  &:hover {
+    text-decoration: none;
+    opacity: .8;
+  }
+}
+
 my-peertube-checkbox {
   display: block;
   margin-bottom: 1rem;
index aa148311f8d3b89283cf9a0d2c8e48981eb6b0ff..e68c1401034f1ae6a46a12061e0ef7879db4c487 100644 (file)
@@ -1,6 +1,7 @@
 <div class="margin-content">
-  <div i18n class="title-page title-page-single">
-    Update {{ video?.name }}
+  <div class="title-page title-page-single">
+    <span class="mr-1" i18n>Update</span>
+    <a [routerLink]="[ '/videos/watch', video.uuid ]">{{ video?.name }}</a>
   </div>
 
   <form novalidate [formGroup]="form">
index 6ec187f401837789fe0c5c30707caf9042cd7b28..20a6071349c763c9923912fc8ba5da260fe01a7c 100644 (file)
@@ -35,7 +35,6 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
     private route: ActivatedRoute,
     private router: Router,
     private notifier: Notifier,
-    private serverService: ServerService,
     private videoService: VideoService,
     private loadingBar: LoadingBarService,
     private videoCaptionService: VideoCaptionService,
index e808538611fab7e5d1a1616c53b089c0cf6d8fdc..41e2a535cfa7f30b8ae16a2838caf837e0a7e006 100644 (file)
@@ -185,6 +185,7 @@ body {
 
         .vjs-play-progress {
           background: var(--embedForegroundColor);
+          transition: all .2s ease 0s;
 
           // Not display the circle if the progress is not hovered
           &::before {