Fix small correctness issues in file viewer

This commit is contained in:
Pixeldrain-Server committed 2023-10-23 17:10:27 +02:00
1 parent 1fd909a602
commit 7fdfaa91b8
2 files changed
+4 -3

No files matched your search

@@ -48,14 +48,14 @@ export const set_file = async file => {
}
</script>
{#if !premium_download && $download_limits.transfer_limit_used > $download_limits.transfer_limit}
<SpeedLimit file={current_file} on:download></SpeedLimit>
{:else if viewer_type === "loading"}
{#if viewer_type === "loading"}
<div class="center">
<Spinner></Spinner>
</div>
{:else if viewer_type === "abuse"}
<Abuse bind:this={viewer} on:download></Abuse>
{:else if !premium_download && $download_limits.transfer_limit_used > $download_limits.transfer_limit}
<SpeedLimit file={current_file} on:download></SpeedLimit>
{:else if viewer_type === "rate_limit"}
<RateLimit bind:this={viewer} on:download></RateLimit>
{:else if viewer_type === "image"}
@@ -28,6 +28,7 @@ export let width = "750px"
border-radius: 8px;
/* Prevent icon from being stretched if text content is too large */
align-self: center;
width: 128px;
}
.description {
flex: 1 1 auto;