Skip to content

Commit 48ad694

Browse files
committed
Make a proper prize display
1 parent d546b99 commit 48ad694

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/extension/util/helpers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function formatSrcomPronouns(pronouns?: string): string | undefined {
8484
*/
8585
export function formatUSD(amount: number, noCents = false): string {
8686
if (amount >= 100 || noCents) {
87-
return `$${Math.floor(amount).toLocaleString('en-US', { maximumFractionDigits: 0 })}`;
87+
return `${Math.floor(amount).toLocaleString('en-US', { maximumFractionDigits: 0 })}`;
8888
}
89-
return `$${amount.toFixed(2)}`;
89+
return `${amount.toFixed(2)}`;
9090
}

src/graphics/_misc/common.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@import url('../_misc/fonts/montserrat.css');
55

66
body {
7-
font-family: 'Goodlight', sans-serif;
7+
font-family: 'Bahnschrift', sans-serif;
88
font-weight: 600;
99
/*color: var(--font-colour);*/
1010
/* text-shadow: 2px 2px 2px black; */

zoton_shared/browser_shared/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ export function msToTimeStr(ms: number): string {
2424
* @param amount Amount as a integer/float.
2525
*/
2626
export function formatUSD(amount: number): string {
27-
return `$${amount.toFixed(2)}`;
27+
return `${amount.toFixed(2)}`;
2828
}

zoton_shared/graphics/mediabox/components/Prize.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
v-show="prize"
55
:class="vertical ? 'FlexColumn' : 'Flex'"
66
:style="{
7-
'font-size': '0.8em', // move to prop?
7+
'font-size': '1em', // move to prop?
88
padding: '10px',
99
'box-sizing': 'border-box',
1010
'text-align': 'center',
@@ -13,7 +13,7 @@
1313
<img
1414
:src="prize.image"
1515
:style="{
16-
height: vertical ? '50%' : '65%',
16+
height: vertical ? '80%' : '100%',
1717
'object-fit': 'contain',
1818
'max-height': '350px',
1919
'margin-left': vertical ? 0 : '20px',

zoton_shared/graphics/mediabox/components/PrizeGeneric.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
v-show="prize"
55
:class="vertical ? 'FlexColumn' : 'Flex'"
66
:style="{
7-
'font-size': '0.8em', // move to prop?
7+
'font-size': '1em', // move to prop?
88
padding: '10px',
99
'box-sizing': 'border-box',
1010
'text-align': 'center',
@@ -21,7 +21,7 @@
2121
}"
2222
>
2323
<div :style="{ 'margin-left': vertical ? 0 : '20px' }">
24-
<!--<div
24+
<div
2525
:style="{
2626
'font-size': '0.7em',
2727
color: 'white', // move to theme!
@@ -31,7 +31,7 @@
3131
</div>
3232
<div :style="{ 'font-size': '1em' }">
3333
{{ prize.name }}?
34-
</div>-->
34+
</div>
3535
<div
3636
:style="{
3737
'font-size': '1em',

0 commit comments

Comments
 (0)