mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 23:58:36 -05:00
Tournaments league mode (#3411)
This commit is contained in:
@@ -72,7 +72,8 @@
|
||||
.nameBlock {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
flex-shrink: 0;
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
.name {
|
||||
@@ -98,8 +99,15 @@
|
||||
}
|
||||
|
||||
.ranges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
column-gap: 0.25em;
|
||||
min-width: 0;
|
||||
color: var(--color-text-high);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.range {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@@ -301,7 +301,14 @@ function RangesText({ ranges }: { ranges: Array<TimeRange> }) {
|
||||
const rangeText = useRangeText();
|
||||
|
||||
return (
|
||||
<span className={styles.ranges}>{ranges.map(rangeText).join(" · ")}</span>
|
||||
<span className={styles.ranges}>
|
||||
{ranges.map((range, index) => (
|
||||
<span key={index} className={styles.range}>
|
||||
{index > 0 ? "· " : null}
|
||||
{rangeText(range)}
|
||||
</span>
|
||||
))}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user