Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -437,7 +437,7 @@ HTML_CONTENT = """
|
|
| 437 |
overflow: auto;
|
| 438 |
}
|
| 439 |
|
| 440 |
-
|
| 441 |
margin: 5% auto;
|
| 442 |
padding: 20px;
|
| 443 |
width: 90%;
|
|
@@ -445,7 +445,7 @@ HTML_CONTENT = """
|
|
| 445 |
text-align: center;
|
| 446 |
}
|
| 447 |
|
| 448 |
-
|
| 449 |
.quick-open-content video,
|
| 450 |
.quick-open-content audio {
|
| 451 |
max-width: 100%;
|
|
@@ -881,7 +881,7 @@ HTML_CONTENT = """
|
|
| 881 |
historyModal.style.display = "none";
|
| 882 |
};
|
| 883 |
actionsContainer.appendChild(embedBtn);
|
| 884 |
-
|
| 885 |
|
| 886 |
historyItem.appendChild(actionsContainer);
|
| 887 |
historyList.appendChild(historyItem);
|
|
@@ -889,7 +889,7 @@ HTML_CONTENT = """
|
|
| 889 |
historyModal.style.display = "block";
|
| 890 |
}
|
| 891 |
|
| 892 |
-
|
| 893 |
quickOpenContent.innerHTML = '';
|
| 894 |
const fullUrl = window.location.origin + url;
|
| 895 |
|
|
@@ -1099,4 +1099,4 @@ async def retry_upload(upload_url: str, file_content: bytes, content_type: str,
|
|
| 1099 |
await asyncio.sleep(delay)
|
| 1100 |
delay = min(delay * 2, 60)
|
| 1101 |
|
| 1102 |
-
return False
|
|
|
|
| 437 |
overflow: auto;
|
| 438 |
}
|
| 439 |
|
| 440 |
+
.quick-open-content {
|
| 441 |
margin: 5% auto;
|
| 442 |
padding: 20px;
|
| 443 |
width: 90%;
|
|
|
|
| 445 |
text-align: center;
|
| 446 |
}
|
| 447 |
|
| 448 |
+
.quick-open-content img,
|
| 449 |
.quick-open-content video,
|
| 450 |
.quick-open-content audio {
|
| 451 |
max-width: 100%;
|
|
|
|
| 881 |
historyModal.style.display = "none";
|
| 882 |
};
|
| 883 |
actionsContainer.appendChild(embedBtn);
|
| 884 |
+
}
|
| 885 |
|
| 886 |
historyItem.appendChild(actionsContainer);
|
| 887 |
historyList.appendChild(historyItem);
|
|
|
|
| 889 |
historyModal.style.display = "block";
|
| 890 |
}
|
| 891 |
|
| 892 |
+
function quickOpen(url, fileName, originalExtension) {
|
| 893 |
quickOpenContent.innerHTML = '';
|
| 894 |
const fullUrl = window.location.origin + url;
|
| 895 |
|
|
|
|
| 1099 |
await asyncio.sleep(delay)
|
| 1100 |
delay = min(delay * 2, 60)
|
| 1101 |
|
| 1102 |
+
return False
|