fix div bug
This commit is contained in:
@@ -5,7 +5,6 @@ import { Stylable } from "./toolbox";
|
|||||||
|
|
||||||
export default (props: { handCount: number } & Stylable) => {
|
export default (props: { handCount: number } & Stylable) => {
|
||||||
return (
|
return (
|
||||||
<div class={props.class} style={props.style}>
|
|
||||||
<For each={Array(props.handCount)}>
|
<For each={Array(props.handCount)}>
|
||||||
{(_, i) => {
|
{(_, i) => {
|
||||||
const midOffset = i() + 0.5 - props.handCount / 2;
|
const midOffset = i() + 0.5 - props.handCount / 2;
|
||||||
@@ -27,6 +26,5 @@ export default (props: { handCount: number } & Stylable) => {
|
|||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
</For>
|
</For>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ export default () => {
|
|||||||
<Portal
|
<Portal
|
||||||
mount={table.players[playerKey].ref}
|
mount={table.players[playerKey].ref}
|
||||||
ref={(ref) => {
|
ref={(ref) => {
|
||||||
console.log("Setting hand ref");
|
|
||||||
const midOffset =
|
const midOffset =
|
||||||
i() + 0.5 - Object.values(view().playerHandCounts).length / 2;
|
i() + 0.5 - Object.values(view().playerHandCounts).length / 2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user