Skip to content

Commit

Permalink
Fix objects positioning 🔧.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarty committed Apr 19, 2024
1 parent 19b5f05 commit 5dd587b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ const Room = ({
selectedObjects,
toggleObjectState,
}) => {
const { width } = room.header;
const zoom = 2;

return (
<>
<h1>Room {room.metadata.id}</h1>
<ResourceMetadata metadata={room.metadata} />
<div className="relative overflow-hidden">
<div
className="relative overflow-hidden"
style={{ maxWidth: width * 8 * zoom }}>
<RoomCanvasContainer
room={room}
baseTiles={baseTiles}
Expand Down

0 comments on commit 5dd587b

Please sign in to comment.