@scriptonita/chess-football-ui 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +13 -2
package/dist/index.js
CHANGED
|
@@ -378,7 +378,14 @@ function GameBoard({ userSide, showCoordinates = false, keyboardNav = true }) {
|
|
|
378
378
|
isDisambiguateTarget && selectedPieceId && /* @__PURE__ */ jsxs(
|
|
379
379
|
"div",
|
|
380
380
|
{
|
|
381
|
-
className:
|
|
381
|
+
className: cn(
|
|
382
|
+
"absolute z-50 flex gap-1 bg-bg-secondary border border-border-subtle rounded-md p-1 shadow-xl pointer-events-auto whitespace-nowrap",
|
|
383
|
+
// The board container is `overflow-hidden` (for its rounded
|
|
384
|
+
// corners), so a popover that spills past an edge gets clipped.
|
|
385
|
+
// Anchor it inside the board on edge columns / the top row.
|
|
386
|
+
y === ROWS - 1 ? "top-full mt-1" : "bottom-full mb-1",
|
|
387
|
+
x === 0 ? "left-0" : x === COLS - 1 ? "right-0" : "left-1/2 -translate-x-1/2"
|
|
388
|
+
),
|
|
382
389
|
onClick: (e) => e.stopPropagation(),
|
|
383
390
|
children: [
|
|
384
391
|
/* @__PURE__ */ jsxs(
|