Add user id to ui

This commit is contained in:
Robert Long 2021-07-26 17:03:20 -07:00
parent b038e12750
commit 60ee420592
2 changed files with 9 additions and 0 deletions

View file

@ -485,6 +485,9 @@ function Room({ client }) {
{!loading && room && (
<div className={styles.header}>
<h3>{room.name}</h3>
<div className={styles.userNav}>
<h5>{client.getUserId()}</h5>
</div>
</div>
)}
{loading && (

View file

@ -43,11 +43,17 @@ limitations under the License.
}
.header {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 64px;
}
.userNav {
position: absolute;
right: 0;
padding: 0 8px;
}
.joinRoom {