Style tweaks

This commit is contained in:
Kalle
2026-09-21 08:09:55 +03:00
parent 41ed17a23e
commit e135bcfccb
2 changed files with 8 additions and 10 deletions

View File

@@ -350,18 +350,19 @@ button.expand {
font-size: var(--font-xs);
& td {
padding: var(--s-0-5) var(--s-1-5);
padding: var(--s-1);
vertical-align: middle;
}
& tr.pov {
font-weight: var(--weight-bold);
& .weapon {
width: 36px;
height: 36px;
}
}
/* the round weapon badge plus the cell padding, so the image is never squeezed */
.weaponCell {
width: 40px;
width: 48px;
}
.name {

View File

@@ -400,13 +400,13 @@ function Scoreboard({
const isPov =
match.pov?.team === team && match.pov.index === index;
return (
<tr key={index} className={clsx({ [styles.pov]: isPov })}>
<tr key={index}>
<td className={styles.weaponCell}>
{player.weaponId !== null ? (
<WeaponImage
weaponSplId={player.weaponId}
variant="build"
size={24}
size={32}
className={clsx(styles.weapon, {
[styles.pov]: isPov,
})}
@@ -422,10 +422,7 @@ function Scoreboard({
</span>
)}
</td>
<td className={styles.name}>
{isPov ? "▸ " : null}
{player.name ?? "?"}
</td>
<td className={styles.name}>{player.name ?? "?"}</td>
<td className={styles.num}>
{player.ka ?? "?"}/{player.d ?? "?"}/{player.s ?? "?"}
</td>