Set up a tabletop view for both the GM and the player #260
File diff suppressed because it is too large
Load Diff
|
@ -19,7 +19,8 @@
|
|||
"react-scripts": "5.0.1",
|
||||
"react-use-websocket": "^4.11.1",
|
||||
"typescript": "^4.9.5",
|
||||
"web-vitals": "^2.1.4"
|
||||
"web-vitals": "^2.1.4",
|
||||
"visions-types": "../visions-types"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { useContext } from 'react';
|
||||
import './Tabletop.css';
|
||||
import { RGB } from 'visions';
|
||||
import { RGB } from 'visions-types';
|
||||
|
||||
interface TabletopElementProps {
|
||||
backgroundColor: RGB;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { createContext, PropsWithChildren, useEffect, useReducer } from "react";
|
||||
import useWebSocket from "react-use-websocket";
|
||||
import { Message, Tabletop } from "visions";
|
||||
import { Message, Tabletop } from "visions-types";
|
||||
|
||||
type TabletopState = {
|
||||
tabletop: Tabletop;
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
.player-view__left-panel {
|
||||
flex-grow: 0;
|
||||
min-width: 100px;
|
||||
max-width: 20%;
|
||||
}
|
||||
|
||||
.player-view__right-panel {
|
||||
flex-grow: 0;
|
||||
min-width: 100px;
|
||||
max-width: 20%;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue