From a27080fc34da70ddb559ffd668c23682ca360989 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 26 Apr 2021 17:33:12 +1000 Subject: [PATCH] Use flex to keep the input box at the bottom --- web-chat/src/App.tsx | 21 ++++++++------------- web-chat/src/Room.tsx | 26 +++++++++++--------------- 2 files changed, 19 insertions(+), 28 deletions(-) diff --git a/web-chat/src/App.tsx b/web-chat/src/App.tsx index 0d77832c92..9c93e1c4c0 100644 --- a/web-chat/src/App.tsx +++ b/web-chat/src/App.tsx @@ -1,4 +1,3 @@ -import { Paper } from '@material-ui/core'; import { multiaddr } from 'multiaddr'; import PeerId from 'peer-id'; import React, { useEffect, useState } from 'react'; @@ -155,18 +154,14 @@ export default function App() { }; return ( -
-
- - - - - -
+
+ + +
); } diff --git a/web-chat/src/Room.tsx b/web-chat/src/Room.tsx index f62dc1613c..8c31c19f59 100644 --- a/web-chat/src/Room.tsx +++ b/web-chat/src/Room.tsx @@ -1,4 +1,4 @@ -import { Box, Grid, List, ListItem, ListItemText } from '@material-ui/core'; +import { List, ListItem, ListItemText } from '@material-ui/core'; import React, { useState } from 'react'; import { ChatMessage } from 'waku-chat/chat_message'; import { WakuMessage } from 'waku/waku_message'; @@ -38,24 +38,20 @@ export default function Room(props: Props) { }; return ( - - - - - - - - +
+
+ +
+
- - +
+
); }