Skip to content

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

Add link to video in update view and smooth progress bar repositioning

Rigel Kent2ba5ac33548b
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.scss b/client/src/app/videos/+video-edit/shared/video-edit.component.scss
index 3d57e9152a..1449147319 100644
--- a/client/src/app/videos/+video-edit/shared/video-edit.component.scss
+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.scss
@@ -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;
diff --git a/client/src/app/videos/+video-edit/video-update.component.html b/client/src/app/videos/+video-edit/video-update.component.html
index aa148311f8..e68c140103 100644
--- a/client/src/app/videos/+video-edit/video-update.component.html
+++ b/client/src/app/videos/+video-edit/video-update.component.html
@@ -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">
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts
index 6ec187f401..20a6071349 100644
--- a/client/src/app/videos/+video-edit/video-update.component.ts
+++ b/client/src/app/videos/+video-edit/video-update.component.ts
@@ -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,
diff --git a/client/src/sass/player/peertube-skin.scss b/client/src/sass/player/peertube-skin.scss
index e808538611..41e2a535cf 100644
--- a/client/src/sass/player/peertube-skin.scss
+++ b/client/src/sass/player/peertube-skin.scss
@@ -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 {