Skip to content

Commit 277fdf9

Browse files
committed
center button & remove discount info
1 parent 81da86e commit 277fdf9

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

src/components/StoragePricingCalculator/StoragePricingCalculator.module.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
.radioOption {
6868
display: flex;
69-
align-items: flex-start;
69+
align-items: center;
7070
gap: 0.75rem;
7171
padding: 1rem;
7272
border: 1px solid var(--color-neutral-border, #e2e8f0);
@@ -89,7 +89,6 @@
8989

9090
.radioOption input[type="radio"] {
9191
margin: 0;
92-
margin-top: 0.125rem;
9392
accent-color: var(--ifm-color-primary);
9493
}
9594

@@ -254,30 +253,30 @@
254253
.calculator {
255254
padding: 1rem;
256255
}
257-
256+
258257
.selectionRow {
259258
grid-template-columns: 1fr;
260259
gap: 1.5rem;
261260
}
262-
261+
263262
.inputGrid {
264263
grid-template-columns: 1fr;
265264
}
266-
265+
267266
.radioOption {
268267
padding: 0.75rem;
269268
}
270-
269+
271270
.results {
272271
padding: 1rem;
273272
}
274-
273+
275274
.costItem {
276275
flex-direction: column;
277276
align-items: flex-start;
278277
gap: 0.25rem;
279278
}
280-
279+
281280
.totalCost {
282281
flex-direction: column;
283282
align-items: flex-start;

src/components/StoragePricingCalculator/index.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const StoragePricingCalculator = () => {
7777

7878
<Admonition type="warning" title="This is an estimate">
7979
This is an estimate based on current pricing. Actual costs may vary.<br/>
80-
Prices are per 1,000 GB-hours for storage and per 1,000 operations for reads/writes/lists.
80+
Prices are per 1,000 GB-hours for storage and per operation for reads/writes/lists.
8181
</Admonition>
8282

8383
<div className={styles.controls}>
@@ -117,12 +117,6 @@ const StoragePricingCalculator = () => {
117117
/>
118118
<div className={styles.radioContent}>
119119
<strong>{tier.name}</strong>
120-
<span>
121-
{tier.storageMultiplier < 1
122-
? `${((1 - tier.storageMultiplier) * 100).toFixed(0)}% discount`
123-
: 'Standard pricing'
124-
}
125-
</span>
126120
</div>
127121
</label>
128122
))}

0 commit comments

Comments
 (0)