diff --git a/client/src/app/torrent-table/torrent-table.component.scss b/client/src/app/torrent-table/torrent-table.component.scss index 4f3d0dd..8ca1cbc 100644 --- a/client/src/app/torrent-table/torrent-table.component.scss +++ b/client/src/app/torrent-table/torrent-table.component.scss @@ -85,4 +85,12 @@ table { @media screen and (max-width: 1279px) { flex-direction: column; } + + @media screen and (max-width: 768px) { + gap: 0.5rem; + + .button { + width: 100%; + } + } } diff --git a/client/src/app/torrent/torrent.component.html b/client/src/app/torrent/torrent.component.html index 5d7dce3..f5317da 100644 --- a/client/src/app/torrent/torrent.component.html +++ b/client/src/app/torrent/torrent.component.html @@ -23,7 +23,7 @@ @if (activeTab === 0) {
-
+
@@ -44,7 +44,7 @@
- {{ torrent.hash }} + {{ torrent.hash }}
@@ -240,72 +240,75 @@ @if (activeTab === 1) {
- - - - - - - - - - - @for (file of torrent.files; track file.id) { +
+
IDPathSizeSelected
+ - - - - + + + + - } - -
- {{ file.id }} - - {{ file.path }} - - {{ file.bytes | filesize }} - - @if (file.selected) { - - } @else { - - } - IDPathSizeSelected
+ + + @for (file of torrent.files; track file.id) { + + + {{ file.id }} + + + {{ file.path }} + + + {{ file.bytes | filesize }} + + + @if (file.selected) { + + } @else { + + } + + + } + + +
} @if (activeTab === 2) {
- - - - - - - - - - - @for (download of torrent.downloads; track download.downloadId) { - @let expanded = downloadExpanded[download.downloadId]; - - - +
+
LinkSizeStatus
- @if (!expanded) { - - } @else { - - } - - @if (download.link) { - {{ download.link | decodeURI }} - } - @if (!download.link) { - {{ download.path }} - } -
+ + + + + + + + + + @for (download of torrent.downloads; track download.downloadId) { + @let expanded = downloadExpanded[download.downloadId]; + + + @@ -335,10 +338,10 @@
@if (download.link) { - {{ download.link | decodeURI }} + {{ download.link | decodeURI }} }
-
+
{{ download.path }}
@@ -431,8 +434,9 @@
} } - -
LinkSizeStatus
+ @if (!expanded) { + + } @else { + + } + + @if (download.link) { + {{ download.link | decodeURI }} + } + @if (!download.link) { + {{ download.path }} + } + {{ download.bytesTotal | filesize }}
+ + +
} diff --git a/client/src/app/torrent/torrent.component.scss b/client/src/app/torrent/torrent.component.scss index 5d62b1c..090a64b 100644 --- a/client/src/app/torrent/torrent.component.scss +++ b/client/src/app/torrent/torrent.component.scss @@ -8,6 +8,10 @@ table { } } +.break-all { + word-break: break-all; +} + .flex-container { display: flex; flex: 1 1 0; @@ -18,3 +22,24 @@ table { flex-direction: column; } } + +@media screen and (max-width: 768px) { + .action-buttons { + .control { + width: 100%; + + .button { + width: 100%; + } + } + } + + .tabs ul { + flex-wrap: wrap; + + li { + flex-grow: 1; + text-align: center; + } + } +}