Skip to content

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

Fix studio page responsive

Chocobozzz82c15dd48efe
diff --git a/client/src/app/+video-studio/edit/video-studio-edit.component.html b/client/src/app/+video-studio/edit/video-studio-edit.component.html
index f26e3119a9..a534f14708 100644
--- a/client/src/app/+video-studio/edit/video-studio-edit.component.html
+++ b/client/src/app/+video-studio/edit/video-studio-edit.component.html
@@ -1,7 +1,7 @@
<div class="margin-content">
<h1 class="title-page" i18n>Studio for {{ video.name }}</h1>
- <div class="columns">
+ <div class="grid-container">
<form role="form" [formGroup]="form">
<div class="section cut" formGroupName="cut">
@@ -69,20 +69,17 @@
></my-button>
</form>
+ <div class="embed-container">
+ <div class="mb-1 fw-bold" i18n>Video before edition</div>
+ <my-embed [video]="video"></my-embed>
+ </div>
- <div class="information">
- <div>
- <div class="mb-1 fw-bold" i18n>Video before edition</div>
- <my-embed [video]="video"></my-embed>
- </div>
-
- <div *ngIf="!noEdition()">
- <div class="mb-1 fw-bold" i18n>Edition tasks:</div>
+ <div class="tasks-container" *ngIf="!noEdition()">
+ <div class="mb-1 fw-bold" i18n>Edition tasks:</div>
- <ol>
- <li *ngFor="let task of getTasksSummary()">{{ task }}</li>
- </ol>
- </div>
+ <ol>
+ <li *ngFor="let task of getTasksSummary()">{{ task }}</li>
+ </ol>
</div>
</div>
</div>
diff --git a/client/src/app/+video-studio/edit/video-studio-edit.component.scss b/client/src/app/+video-studio/edit/video-studio-edit.component.scss
index 52b6bbad98..eef6655da5 100644
--- a/client/src/app/+video-studio/edit/video-studio-edit.component.scss
+++ b/client/src/app/+video-studio/edit/video-studio-edit.component.scss
@@ -1,20 +1,48 @@
@use '_variables' as *;
@use '_mixins' as *;
-.columns {
- display: flex;
+.grid-container {
+ display: grid;
+ grid-template-columns: auto 1fr;
+ grid-template-rows: auto 1fr;
- .information {
- width: 100%;
+ @include rfs(3rem, column-gap);
+ @include rfs(2rem, row-gap);
- @include margin-left(50px);
+ form {
+ grid-column: 1;
+ grid-row: 1 / 3;
+ }
+
+ .embed-container {
+ grid-column: 2;
+ grid-row: 1;
+ }
+
+ .tasks-container {
+ grid-column: 2;
+ grid-row: 2;
+ }
+}
+
+@include on-small-main-col {
+ .grid-container {
+ grid-template-columns: 1fr;
+ grid-template-rows: auto auto 1fr;
+
+ form {
+ grid-column: 1;
+ grid-row: 2;
+ }
- > div {
- margin-bottom: 30px;
+ .embed-container {
+ grid-column: 1;
+ grid-row: 1;
}
- @media screen and (max-width: $small-view) {
- display: none;
+ .tasks-container {
+ grid-column: 1;
+ grid-row: 3;
}
}
}
@@ -56,7 +84,7 @@ h2 {
}
@media screen and (max-width: $min-width) {
- min-width: none;
+ min-width: 100%;
}
}