mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 22:29:38 +00:00
Improve download UI
This commit is contained in:
@@ -8,9 +8,21 @@
|
||||
[class.border-2]="download.type === 'error'">
|
||||
<div class="card-body">
|
||||
<div class="card-actions justify-end">
|
||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2" (click)="downloadService.cancelDownload(download.md5)">
|
||||
<i class="bi bi-x-lg text-lg"></i>
|
||||
</button>
|
||||
@if (download.type === 'done') {
|
||||
<button
|
||||
class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2 tooltip tooltip-left tooltip-accent"
|
||||
data-tip="Hide"
|
||||
(click)="downloadService.cancelDownload(download.md5)">
|
||||
<i class="bi bi-x-lg text-lg"></i>
|
||||
</button>
|
||||
} @else {
|
||||
<button
|
||||
class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2 tooltip tooltip-left tooltip-error"
|
||||
data-tip="Cancel"
|
||||
(click)="downloadService.cancelDownload(download.md5)">
|
||||
<i class="bi bi-x-lg text-lg text-error"></i>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
<h2 class="card-title">{{ download.chartName }}</h2>
|
||||
<progress
|
||||
|
||||
Reference in New Issue
Block a user