fix div bug

This commit is contained in:
2025-09-08 22:54:10 -04:00
parent fb3f567a5b
commit 7d45a36f93
2 changed files with 21 additions and 24 deletions

View File

@@ -5,7 +5,6 @@ import { Stylable } from "./toolbox";
export default (props: { handCount: number } & Stylable) => {
return (
<div class={props.class} style={props.style}>
<For each={Array(props.handCount)}>
{(_, i) => {
const midOffset = i() + 0.5 - props.handCount / 2;
@@ -27,6 +26,5 @@ export default (props: { handCount: number } & Stylable) => {
);
}}
</For>
</div>
);
};

View File

@@ -87,7 +87,6 @@ export default () => {
<Portal
mount={table.players[playerKey].ref}
ref={(ref) => {
console.log("Setting hand ref");
const midOffset =
i() + 0.5 - Object.values(view().playerHandCounts).length / 2;