mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
WebUI: Fix add torrent spinner in Firefox
Firefox seems to have an issue where svgs loaded via background-url are not animated. Loading the svg directly as an img fixes this. Related: #23074. PR #23195.
This commit is contained in:
committed by
GitHub
parent
3146a3c2f9
commit
f651a311a4
@@ -131,6 +131,15 @@
|
||||
background-color: initial;
|
||||
}
|
||||
|
||||
#loadingSpinner {
|
||||
position: absolute;
|
||||
left: 6px;
|
||||
bottom: 2px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -396,7 +405,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="submitbutton" style="display: flex; margin-top: 10px; align-items: center; position: relative;">
|
||||
<div id="loadingSpinner" class="mochaSpinner" style="display: block; bottom: 2px;"></div>
|
||||
<img id="loadingSpinner" src="images/spinner.svg" alt="" aria-hidden="true">
|
||||
<div id="errorIcon" class="mochaErrorIcon invisible" style="bottom: 2px;"></div>
|
||||
<span id="metadataStatus" style="padding-left: 28px;">Retrieving metadata</span>
|
||||
<button id="saveTorrent" type="button" class="invisible" style="font-size: 1em;">QBT_TR(Save as .torrent file)QBT_TR[CONTEXT=AddNewTorrentDialog]</button>
|
||||
|
||||
@@ -3138,7 +3138,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||
img_path = "images/task-reject.svg";
|
||||
break;
|
||||
case "isLoading":
|
||||
img_path = "images/spinner.gif";
|
||||
img_path = "images/spinner.svg";
|
||||
break;
|
||||
case "unread":
|
||||
img_path = "images/mail-inbox.svg";
|
||||
|
||||
Reference in New Issue
Block a user