From 1dfb6fb7211f13c19203de37d4b03a5f781ce955 Mon Sep 17 00:00:00 2001 From: ishak Date: Thu, 2 Aug 2018 14:22:03 +0300 Subject: [PATCH] making chat component and fix style issues relate to issue #7 --- frontend/src/AppRoutes.css | 2 +- frontend/src/AppRoutes.js | 2 +- frontend/src/components/Chats/Chats.js | 1 + frontend/src/components/Chats/styles.css | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/AppRoutes.css b/frontend/src/AppRoutes.css index 43b73ff..966c519 100644 --- a/frontend/src/AppRoutes.css +++ b/frontend/src/AppRoutes.css @@ -1,4 +1,4 @@ -.AppRoutes { +.AppRoutes { text-align: center; position: relative; min-height: 667px; diff --git a/frontend/src/AppRoutes.js b/frontend/src/AppRoutes.js index b231bef..87ca25f 100644 --- a/frontend/src/AppRoutes.js +++ b/frontend/src/AppRoutes.js @@ -2,7 +2,7 @@ import React from 'react'; import {BrowserRouter, Route, Switch} from 'react-router-dom' import './AppRoutes.css'; -import './style/style.css'; +import './style/style.css'; import Login from './components/Login/Login'; import Header from './components/Header'; diff --git a/frontend/src/components/Chats/Chats.js b/frontend/src/components/Chats/Chats.js index cd03e46..49697ab 100644 --- a/frontend/src/components/Chats/Chats.js +++ b/frontend/src/components/Chats/Chats.js @@ -56,6 +56,7 @@ const Chat = ({ saveMsg }) => ( + ); const Messages = ({ chat }) => ( diff --git a/frontend/src/components/Chats/styles.css b/frontend/src/components/Chats/styles.css index 0ba14b7..0d4b060 100644 --- a/frontend/src/components/Chats/styles.css +++ b/frontend/src/components/Chats/styles.css @@ -187,7 +187,7 @@ } .section{ - overflow-y: scroll; + overflow-y: scroll; height: 340px; margin-top: 20px; margin-left: 25px;