replace @angular/flex-layout in torrent-component
use `flex-container` class instead of `fxLayout` and set `style="flex: 1 1 0" to replicate `fxFlex`
This commit is contained in:
parent
4a5be33247
commit
d11900a127
2 changed files with 19 additions and 8 deletions
|
|
@ -18,8 +18,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="torrent !== null && torrent !== undefined">
|
<div *ngIf="torrent !== null && torrent !== undefined">
|
||||||
<div fxLayout.lt-lg="column" fxLayout.gt-sm="row" fxLayoutGap="20px" *ngIf="activeTab === 0">
|
<div class="flex-container" *ngIf="activeTab === 0">
|
||||||
<div fxFlex>
|
<div style="flex: 1 1 0">
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<button class="button is-danger" (click)="showDeleteModal()">Delete Torrent</button>
|
<button class="button is-danger" (click)="showDeleteModal()">Delete Torrent</button>
|
||||||
|
|
@ -129,7 +129,7 @@
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex>
|
<div style="flex: 1 1 0">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Real-Debrid ID</label>
|
<label class="label">Real-Debrid ID</label>
|
||||||
{{ torrent.rdId }}
|
{{ torrent.rdId }}
|
||||||
|
|
@ -251,8 +251,8 @@
|
||||||
<tr *ngIf="downloadExpanded[download.downloadId]" class="separator">
|
<tr *ngIf="downloadExpanded[download.downloadId]" class="separator">
|
||||||
<td style="width: 35px"></td>
|
<td style="width: 35px"></td>
|
||||||
<td colspan="5">
|
<td colspan="5">
|
||||||
<div fxLayout.lt-lg="column" fxLayout.gt-sm="row" fxLayoutGap="20px">
|
<div class="flex-container">
|
||||||
<div fxFlex>
|
<div style="flex: 1 1 0;">
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<button class="button is-primary" (click)="showDownloadRetryModal(download.downloadId)">
|
<button class="button is-primary" (click)="showDownloadRetryModal(download.downloadId)">
|
||||||
|
|
@ -285,7 +285,7 @@
|
||||||
{{ download.retryCount }} / {{ torrent.downloadRetryAttempts }}
|
{{ download.retryCount }} / {{ torrent.downloadRetryAttempts }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex>
|
<div style="flex: 1 1 0;">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Added</label>
|
<label class="label">Added</label>
|
||||||
<ng-container *ngIf="download.added">
|
<ng-container *ngIf="download.added">
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,16 @@ table {
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-download {
|
.fa-download {
|
||||||
margin-left :12px;
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-container {
|
||||||
|
display: flex;
|
||||||
|
flex: 1 1 0;
|
||||||
|
gap: 20px;
|
||||||
|
flex-direction: row;
|
||||||
|
|
||||||
|
@media screen and (max-width: 1279px) {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue