Fix small correctness issues in file viewer
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user