Skip to content

Commit 2c8e4e7

Browse files
committed
fix: alert aligment issue in max file size card
1 parent a2667f8 commit 2c8e4e7

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,12 @@
4646
<svelte:fragment slot="aside">
4747
{#if isCloud}
4848
{@const size = humanFileSize(sizeToBytes(service, 'MB', 1000))}
49-
<Alert.Inline status="info">
50-
The {currentPlan.name} plan has a maximum upload file size limit of {Math.floor(
51-
parseInt(size.value)
52-
)}{size.unit}.
53-
{#if $organization?.billingPlan === BillingPlan.FREE}
54-
Upgrade to allow files of a larger size.
55-
{/if}
56-
<svelte:fragment slot="actions">
57-
{#if $organization?.billingPlan === BillingPlan.FREE}
49+
{#if $organization?.billingPlan === BillingPlan.FREE}
50+
<Alert.Inline status="info">
51+
The {currentPlan.name} plan has a maximum upload file size limit of {Math.floor(
52+
parseInt(size.value)
53+
)}{size.unit}. Upgrade to allow files of a larger size.
54+
<svelte:fragment slot="actions">
5855
<div class="alert-buttons u-flex">
5956
<Button
6057
text
@@ -65,10 +62,17 @@
6562
});
6663
}}>Upgrade plan</Button>
6764
</div>
68-
{/if}
69-
</svelte:fragment>
70-
</Alert.Inline>
65+
</svelte:fragment>
66+
</Alert.Inline>
67+
{:else}
68+
<Alert.Inline status="info">
69+
The {currentPlan.name} plan has a maximum upload file size limit of {Math.floor(
70+
parseInt(size.value)
71+
)}{size.unit}.
72+
</Alert.Inline>
73+
{/if}
7174
{/if}
75+
7276
<InputNumber
7377
required
7478
id="size"

0 commit comments

Comments
 (0)