Updated skywars
This commit is contained in:
@@ -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}%`
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user