Merge pull request #1057 from ItzNotABug/fix-add-file-size-limit-info

Improve Bucket Limits Message
This commit is contained in:
Steven Nguyen authored and GitHub committed 2024-05-01 16:40:41 -07:00
commit 140b600701
1 file changed
+9 -4
@@ -113,13 +113,18 @@
</svelte:fragment>
<svelte:fragment slot="tooltip" let:limit let:tier let:upgradeMethod>
{#if tier === 'Starter'}
<p class="u-bold">The {tier} plan has limits</p>
<ul>
<li>{limit}GB total file storage</li>
<li>
{Math.floor(parseInt(maxFileSize.value))}{maxFileSize.unit} file upload size
limit
</li>
</ul>
<p class="text">
You are limited to {limit} GB of total storage and {Math.floor(
parseInt(maxFileSize.value)
)}{maxFileSize.unit} on the {tier} plan.
<button class="link" type="button" on:click|preventDefault={upgradeMethod}
>Upgrade</button>
for additional storage.
for additional storage resources.
</p>
{:else}
<p class="text">