Skip to content

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

Simplify watch page CSS

Chocobozzz00b930d7d9cc
diff --git a/client/src/app/+video-watch/video-watch.component.html b/client/src/app/+video-watch/video-watch.component.html
index a31c4454fb..e6d9bbc59c 100644
--- a/client/src/app/+video-watch/video-watch.component.html
+++ b/client/src/app/+video-watch/video-watch.component.html
@@ -40,28 +40,14 @@
<div class="video-info">
<div class="video-info-first-row">
<div>
- <ng-template #publishedTemplate>
- <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container>
- •
- <my-video-views-counter [isLive]="video.isLive" [viewers]="video.viewers" [views]="video.views"></my-video-views-counter>
- </ng-template>
-
- <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
- <h1 class="video-info-name">{{ video.name }}</h1>
-
- <div class="video-info-date-views">
- <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template>
- </div>
- </div>
-
<div class="d-flex justify-content-between flex-direction-column">
- <div class="d-none d-md-block">
- <h1 class="video-info-name">{{ video.name }}</h1>
- </div>
+ <h1 class="video-info-name">{{ video.name }}</h1>
<div class="video-info-first-row-bottom">
- <div class="d-none d-md-block video-info-date-views">
- <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template>
+ <div class="video-info-date-views">
+ <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container>
+ •
+ <my-video-views-counter [isLive]="video.isLive" [viewers]="video.viewers" [views]="video.views"></my-video-views-counter>
</div>
<my-action-buttons
diff --git a/client/src/app/+video-watch/video-watch.component.scss b/client/src/app/+video-watch/video-watch.component.scss
index d2867be12b..08268905ce 100644
--- a/client/src/app/+video-watch/video-watch.component.scss
+++ b/client/src/app/+video-watch/video-watch.component.scss
@@ -1,8 +1,8 @@
-@use 'sass:math';
-@use '_variables' as *;
-@use '_mixins' as *;
-@use '_bootstrap-variables';
-@use '_miniature' as *;
+@use "sass:math";
+@use "_variables" as *;
+@use "_mixins" as *;
+@use "_bootstrap-variables";
+@use "_miniature" as *;
$video-default-height: 66vh;
$video-max-height: calc(100vh - #{pvar(--header-height)} - #{$theater-bottom-space});
@@ -53,7 +53,7 @@ $video-max-height: calc(100vh - #{pvar(--header-height)} - #{$theater-bottom-spa
background-color: #000;
display: flex;
justify-content: center;
- border-radius:5px;
+ border-radius: 5px;
#videojs-wrapper {
display: flex;
@@ -144,13 +144,13 @@ $video-max-height: calc(100vh - #{pvar(--header-height)} - #{$theater-bottom-spa
.video-info-first-row-bottom {
display: flex;
flex-wrap: wrap;
- align-items: center;
width: 100%;
+ gap: 0.5rem;
+ margin-bottom: 1rem;
+ flex-direction: column;
}
.video-info-date-views {
- margin-bottom: 10px;
- align-self: start;
font-size: 14px;
@include margin-right(10px);
@@ -204,10 +204,6 @@ my-video-attributes {
my-action-buttons {
display: block;
- margin-top: 0;
- margin-bottom: 10px;
-
- align-items: start;
width: max-content;
@include margin-left(auto);
@@ -288,10 +284,6 @@ my-video-comments {
.video-info-date-views {
font-size: 14px;
}
-
- my-action-buttons {
- margin-top: 10px;
- }
}
// Special case for iOS, that takes into account the width for fullscreens