Fix small correctness issues in file viewer

This commit is contained in:
2023-10-23 17:10:27 +02:00
parent 1fd909a602
commit 7fdfaa91b8
2 changed files with 4 additions and 3 deletions

View File

@@ -48,14 +48,14 @@ export const set_file = async file => {
} }
</script> </script>
{#if !premium_download && $download_limits.transfer_limit_used > $download_limits.transfer_limit} {#if viewer_type === "loading"}
<SpeedLimit file={current_file} on:download></SpeedLimit>
{:else if viewer_type === "loading"}
<div class="center"> <div class="center">
<Spinner></Spinner> <Spinner></Spinner>
</div> </div>
{:else if viewer_type === "abuse"} {:else if viewer_type === "abuse"}
<Abuse bind:this={viewer} on:download></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"} {:else if viewer_type === "rate_limit"}
<RateLimit bind:this={viewer} on:download></RateLimit> <RateLimit bind:this={viewer} on:download></RateLimit>
{:else if viewer_type === "image"} {:else if viewer_type === "image"}

View File

@@ -28,6 +28,7 @@ export let width = "750px"
border-radius: 8px; border-radius: 8px;
/* Prevent icon from being stretched if text content is too large */ /* Prevent icon from being stretched if text content is too large */
align-self: center; align-self: center;
width: 128px;
} }
.description { .description {
flex: 1 1 auto; flex: 1 1 auto;