feat(players): app Players library and circular NPC tokens on scenes
Add userData players/teams, scene npcTokens with hex-inscribed sizing, session scale synced to presentation, and Playwright e2e coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -272,6 +272,34 @@
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.npcTile {
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
padding: 7px 4px;
|
||||
border: 1px solid var(--stroke, #2a2f3a);
|
||||
border-radius: 8px;
|
||||
background: rgb(0 0 0 / 22%);
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.sceneNpcToken {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
overflow: visible;
|
||||
transform: translate(-50%, -50%);
|
||||
cursor: move;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.sceneNpcToken > * {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sceneNpcToken .handle {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.tokenThumb {
|
||||
aspect-ratio: 1;
|
||||
border-radius: 6px;
|
||||
|
||||
Reference in New Issue
Block a user