sheva77 3 lat temu
rodzic
commit
8cf7a8e8cb

+ 2 - 2
chat_final_bootstrap/src/App.scss

@@ -95,8 +95,8 @@ body {
 }
 
 .MessageInput {
-    max-height: 135px;
-    min-height: 135px;
+    max-height: 110px;
+    min-height: 110px;
     background-color: darkslategray;
 }
 

+ 1 - 1
chat_final_bootstrap/src/Components/ChatMessages.js

@@ -193,7 +193,7 @@ const Messages = ({ _id = "", chatInfo, messages, getMsg }) => {
                                 )}
                             </div>
                         </Link>
-                        <div className="fs-4 fw-bolder ms-2">{`${title}`}</div>
+                        <div className="fs-5 fw-bolder ms-2">{`${title}`}</div>
                     </div>
                     {/* <span className="position-absolute bottom-0 end-0  badge rounded-pill bg-secondary"> */}
                     <span className="position-absolute bottom-0 end-0 rounded-pill bg-success">

+ 1 - 1
chat_final_bootstrap/src/Pages/PageLogin.js

@@ -21,7 +21,7 @@ const LoginForm = ({ onLogin = null, onRegistration = null, isLoggedIn, mode = "
 
     //FIXME: надо засунуть router в redux
     if (store.getState().auth && store.getState().auth.login && localStorage.authToken) {
-        history.push(`/main/${store.getState().auth.payloadId}`);
+        history.push(`/main`);
     }
 
     const clearHooks = () => {

+ 1 - 1
chat_final_bootstrap/src/Pages/PageLogin2.js

@@ -15,7 +15,7 @@ const LoginForm = ({ onLogin = null, isLoggedIn, mode = "Login" }) => {
 
     //FIXME: надо засунуть router в redux
     if (store.getState().auth && store.getState().auth.login && localStorage.authToken) {
-        history.push(`/main/${store.getState().auth.payloadId}`);
+        history.push(`/main`);
     }
 
     return (

+ 1 - 1
chat_final_bootstrap/src/Pages/PageMain.js

@@ -121,7 +121,7 @@ const PageMain = ({
                             <Sidebar />
                         </div>
                     </div>
-                    <div className="col-md-8">
+                    <div className="col-md-8 border border-3 rounded-3 shadow bg-gradient-light p-2">
                         <div className="pageMain_ChatMessages mb-2">
                             <div className="maxWidthForMsg">
                                 <ChatMessages _chatId={_chatId} />