From 895a8e394aec1734ef5686046cf5a7febd1c3632 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 6 Dec 2018 16:27:30 +0300 Subject: layout fixes --- vnext/src/components/Message.css | 14 +++++++++++++- vnext/src/components/UserInfo.js | 15 +++++++++------ 2 files changed, 22 insertions(+), 7 deletions(-) (limited to 'vnext/src') diff --git a/vnext/src/components/Message.css b/vnext/src/components/Message.css index df51fa80..328e5598 100644 --- a/vnext/src/components/Message.css +++ b/vnext/src/components/Message.css @@ -107,12 +107,24 @@ article .tags > a, color: #999; } .msg-txt { - clear: both; margin: 0 0 12px; padding-top: 10px; word-wrap: break-word; overflow-wrap: break-word; } +q:before, +q:after { + content: ""; +} +q, +blockquote { + border-left: 3px solid #CCC; + color: #666; + display: block; + margin: 10px 0 10px 10px; + padding-left: 10px; + word-break: break-word; +} .msg-media { text-align: center; } diff --git a/vnext/src/components/UserInfo.js b/vnext/src/components/UserInfo.js index 5bbf24bd..bd9cbc5f 100644 --- a/vnext/src/components/UserInfo.js +++ b/vnext/src/components/UserInfo.js @@ -1,7 +1,9 @@ import React from 'react'; - +import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; +import { UserType } from './Types'; + import { info } from '../api'; import Avatar from './Avatar'; @@ -25,7 +27,7 @@ export default class UserInfo extends React.Component { render() { const { user } = this.state; return ( -
+
Was online recently
@@ -50,9 +52,6 @@ export default class UserInfo extends React.Component { -
- -
    { @@ -79,7 +78,11 @@ export default class UserInfo extends React.Component { }
-
+ ); } } + +UserInfo.propTypes = { + user: PropTypes.string.isRequired +}; -- cgit v1.2.3