Skip to content

Commit 57a2c52

Browse files
committed
Make event names the same size
1 parent ee19bf3 commit 57a2c52

File tree

4 files changed

+24
-14
lines changed

4 files changed

+24
-14
lines changed

src/components/MultiDisplay/EventRow/PlayoffRow/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
// update,
99
} from 'firebase/database';
1010
// @ts-ignore
11-
import { Textfit } from '@gmurph91/react-textfit';
11+
// import { Textfit } from '@gmurph91/react-textfit';
1212
import { useEffect, useState } from 'preact/hooks';
1313
import DoubleEliminationBracketMapping, {
1414
BracketMatchNumber,
@@ -209,12 +209,12 @@ const PlayoffRow = ({
209209
{/* Use event short name */}
210210
{useShortName && (
211211
<div
212-
className={`${styles.textCenter} ${styles.bold}`}
213-
style={{ width: '15vw' }}
212+
className={`${styles.textLeft} ${styles.bold} ${styles.eventName}`}
213+
// style={{ width: '15vw', fontSize: '8.5vw' }}
214214
>
215-
<Textfit mode="single" forceSingleModeWidth max="300">
215+
{/* <Textfit mode="single" forceSingleModeWidth max="300"> */}
216216
{event.nameShort || event.name}
217-
</Textfit>
217+
{/* </Textfit> */}
218218
</div>
219219
)}
220220
</td>

src/components/MultiDisplay/EventRow/QualRow/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
// update,
1010
} from 'firebase/database';
1111
// @ts-ignore
12-
import { Textfit } from '@gmurph91/react-textfit';
12+
// import { Textfit } from '@gmurph91/react-textfit';
1313
import styles from '../sharedStyles.module.scss';
1414
import { Break, MatchOrBreak, QualMatchData } from '@/models/MatchData';
1515
import AllianceFader from '../AllianceFader';
@@ -218,12 +218,12 @@ const QualRow = ({
218218
{/* Use event short name */}
219219
{useShortName && (
220220
<div
221-
className={`${styles.textCenter} ${styles.bold}`}
222-
style={{ width: '15vw' }}
221+
className={`${styles.textLeft} ${styles.bold} ${styles.eventName}`}
222+
// style={{ width: '15vw', fontSize: '8.5vw' }}
223223
>
224-
<Textfit mode="single" forceSingleModeWidth max="300">
224+
{/* <Textfit mode="single" forceSingleModeWidth max="300"> */}
225225
{event.nameShort || event.name}
226-
</Textfit>
226+
{/* </Textfit> */}
227227
</div>
228228
)}
229229
</td>

src/components/MultiDisplay/EventRow/sharedStyles.module.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ $cell-vertical-negative: -3vh;
99
text-align: center;
1010
}
1111

12+
.textLeft {
13+
text-align: left !important;
14+
}
15+
1216
.matchNumber {
1317
text-align: center;
1418
font-size: $matchnumber-size;
@@ -18,6 +22,12 @@ $cell-vertical-negative: -3vh;
1822
line-height: 0.8;
1923
}
2024

25+
.eventName {
26+
text-align: left;
27+
font-size: calc($matchnumber-size * 0.8);
28+
font-weight: bold;
29+
}
30+
2131
.noTeamNumbers .matchNumber {
2232
top: 0;
2333
font-size: calc($matchnumber-size * 0.9);

src/components/MultiDisplay/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ const MultiQueueing = () => {
4242
<table>
4343
<thead>
4444
<tr style={{ textAlign: 'center', fontSize: '7vh' }}>
45-
<th style={{ width: '18vw', borderRight: '6px solid white' }}>{clock}</th>
46-
<th style={{ width: '27.33vw' }}>On Field</th>
47-
<th style={{ width: '27.33vw' }}>Up Next</th>
48-
<th style={{ width: '27.33vw' }}>Queueing</th>
45+
<th style={{ width: '22vw', borderRight: '6px solid white' }}>{clock}</th>
46+
<th style={{ width: '26vw' }}>On Field</th>
47+
<th style={{ width: '26vw' }}>Up Next</th>
48+
<th style={{ width: '26vw' }}>Queueing</th>
4949
</tr>
5050
</thead>
5151
<tbody>

0 commit comments

Comments
 (0)