Updated skywars

This commit is contained in:
2025-09-06 19:32:25 +02:00
parent 8dc7fa8259
commit d05da14259
3 changed files with 7 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ export function HeadsBar({ heads, heads_total }: { heads: [string, number][], he
return (
<>
<div className="flex mt-2 mb-4">
<div className="flex overflow-hidden mt-2 mb-4 rounded-md">
{heads.map(([key, total]) => {
const head = getHeads(key)
const percent = total / heads_total
@@ -83,7 +83,7 @@ export function HeadsBar({ heads, heads_total }: { heads: [string, number][], he
data-tooltip-id="heads-bar"
data-tooltip-content={`${total} ${head === null ? "Undefined" : head.name} heads`}
key={key}
className={cn("h-5 first:rounded-l-md last:rounded-r-md", head === null ? "bg-background" : `bg-mc-${head.color}`)}
className={cn("h-5", head === null ? "bg-background" : `bg-mc-${head.color}`)}
style={{
width: `${percent * 100}%`
}}