Browse Source

TopicView changes, other fixes

develop
Ezerous 4 years ago
parent
commit
2d90c587c0
  1. 1
      packages/concordia-app/public/locales/en/translation.json
  2. 1
      packages/concordia-app/src/assets/css/index.css
  3. 27
      packages/concordia-app/src/components/PostCreate/index.jsx
  4. 12
      packages/concordia-app/src/components/PostCreate/styles.css
  5. 2
      packages/concordia-app/src/components/PostList/PostListRow/index.jsx
  6. 13
      packages/concordia-app/src/components/PostList/PostListRow/styles.css
  7. 14
      packages/concordia-app/src/components/PostList/index.jsx
  8. 128
      packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx
  9. 25
      packages/concordia-app/src/components/TopicList/TopicListRow/styles.css
  10. 12
      packages/concordia-app/src/components/TopicList/index.jsx
  11. 107
      packages/concordia-app/src/views/Topic/TopicView/index.jsx
  12. 6
      packages/concordia-app/src/views/Topic/TopicView/styles.css

1
packages/concordia-app/public/locales/en/translation.json

@ -72,7 +72,6 @@
"topic.create.form.post.button": "Post", "topic.create.form.post.button": "Post",
"topic.create.form.subject.field.label": "Topic subject", "topic.create.form.subject.field.label": "Topic subject",
"topic.create.form.subject.field.placeholder": "Subject", "topic.create.form.subject.field.placeholder": "Subject",
"topic.list.row.number.of.replies": "{{numberOfReplies}} replies",
"topic.list.row.topic.id": "#{{id}}", "topic.list.row.topic.id": "#{{id}}",
"username.selector.error.username.empty.message": "Username is required", "username.selector.error.username.empty.message": "Username is required",
"username.selector.error.username.taken.message": "The username {{username}} is already taken.", "username.selector.error.username.taken.message": "The username {{username}} is already taken.",

1
packages/concordia-app/src/assets/css/index.css

@ -1,6 +1,7 @@
body.app { body.app {
overflow: auto; overflow: auto;
margin: 0; margin: 0;
background: #E6E6E6;
} }
div { div {

27
packages/concordia-app/src/components/PostCreate/index.jsx

@ -2,7 +2,7 @@ import React, {
memo, useCallback, useEffect, useState, memo, useCallback, useEffect, useState,
} from 'react'; } from 'react';
import { import {
Button, Feed, Form, Icon, Image, TextArea, Button, Feed, Form, Icon, TextArea,
} from 'semantic-ui-react'; } from 'semantic-ui-react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
@ -10,7 +10,6 @@ import { useDispatch, useSelector } from 'react-redux';
import determineKVAddress from '../../utils/orbitUtils'; import determineKVAddress from '../../utils/orbitUtils';
import { POSTS_DATABASE, USER_DATABASE } from '../../constants/orbit/OrbitDatabases'; import { POSTS_DATABASE, USER_DATABASE } from '../../constants/orbit/OrbitDatabases';
import { FETCH_USER_DATABASE } from '../../redux/actions/peerDbReplicationActions'; import { FETCH_USER_DATABASE } from '../../redux/actions/peerDbReplicationActions';
import { USER_PROFILE_PICTURE } from '../../constants/orbit/UserDatabaseKeys';
import { breeze, drizzle } from '../../redux/store'; import { breeze, drizzle } from '../../redux/store';
import './styles.css'; import './styles.css';
import { TRANSACTION_ERROR, TRANSACTION_SUCCESS } from '../../constants/TransactionStatus'; import { TRANSACTION_ERROR, TRANSACTION_SUCCESS } from '../../constants/TransactionStatus';
@ -28,7 +27,6 @@ const PostCreate = (props) => {
const transactionStack = useSelector((state) => state.transactionStack); const transactionStack = useSelector((state) => state.transactionStack);
const transactions = useSelector((state) => state.transactions); const transactions = useSelector((state) => state.transactions);
const [postContent, setPostContent] = useState(''); const [postContent, setPostContent] = useState('');
const [userProfilePictureUrl, setUserProfilePictureUrl] = useState();
const [createPostCacheSendStackId, setCreatePostCacheSendStackId] = useState(''); const [createPostCacheSendStackId, setCreatePostCacheSendStackId] = useState('');
const [posting, setPosting] = useState(false); const [posting, setPosting] = useState(false);
const [storingPost, setStoringPost] = useState(false); const [storingPost, setStoringPost] = useState(false);
@ -44,9 +42,7 @@ const PostCreate = (props) => {
const userFound = users const userFound = users
.find((user) => user.id === userOrbitAddress); .find((user) => user.id === userOrbitAddress);
if (userFound) { if (!userFound) {
setUserProfilePictureUrl(userFound[USER_PROFILE_PICTURE]);
} else {
dispatch({ dispatch({
type: FETCH_USER_DATABASE, type: FETCH_USER_DATABASE,
orbit, orbit,
@ -122,23 +118,6 @@ const PostCreate = (props) => {
return ( return (
<Feed> <Feed>
<Feed.Event> <Feed.Event>
<Feed.Label className="post-profile-picture">
{userProfilePictureUrl
? (
<Image
avatar
src={userProfilePictureUrl}
/>
)
: (
<Icon
name="user circle"
size="big"
inverted
color="black"
/>
)}
</Feed.Label>
<Feed.Content> <Feed.Content>
<Feed.Summary> <Feed.Summary>
<Form> <Form>
@ -152,7 +131,7 @@ const PostCreate = (props) => {
/> />
</Form> </Form>
</Feed.Summary> </Feed.Summary>
<Feed.Meta> <Feed.Meta id="post-button">
<Feed.Like> <Feed.Like>
<Form.Button <Form.Button
animated animated

12
packages/concordia-app/src/components/PostCreate/styles.css

@ -1,7 +1,3 @@
.post-profile-picture {
margin: 5px 0 0 0;
}
.post-summary-meta-index { .post-summary-meta-index {
float: right; float: right;
font-size: 12px; font-size: 12px;
@ -11,3 +7,11 @@
.like:hover .icon { .like:hover .icon {
color: #fff !important; color: #fff !important;
} }
#post-button {
float: right;
}
#post-button button {
margin: 0;
}

2
packages/concordia-app/src/components/PostList/PostListRow/index.jsx

@ -136,7 +136,7 @@ const PostListRow = (props) => {
{authorAvatarLink} {authorAvatarLink}
</Feed.Label> </Feed.Label>
</Ref> </Ref>
<Feed.Content> <Feed.Content className="post-content">
<Feed.Summary> <Feed.Summary>
<Link to={`/topics/${topicId}/#post-${postId}`}> <Link to={`/topics/${topicId}/#post-${postId}`}>
<span className="post-summary-meta-index"> <span className="post-summary-meta-index">

13
packages/concordia-app/src/components/PostList/PostListRow/styles.css

@ -1,5 +1,16 @@
.post-profile-picture { .post-profile-picture {
margin: 5px 0 0 0; margin-top: 1rem;
}
.post-profile-picture img {
border-radius: 50%;
width: 2em !important;
height: 2em !important;
margin: 0 !important;
}
.post-content {
margin-left: 0.5rem !important;
} }
.post-summary-meta-index { .post-summary-meta-index {

14
packages/concordia-app/src/components/PostList/index.jsx

@ -3,7 +3,9 @@ import React, {
} from 'react'; } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
import { Dimmer, Feed, Loader } from 'semantic-ui-react'; import {
Dimmer, Feed, Loader,
} from 'semantic-ui-react';
import PostListRow from './PostListRow'; import PostListRow from './PostListRow';
import { drizzle } from '../../redux/store'; import { drizzle } from '../../redux/store';
import { FORUM_CONTRACT } from '../../constants/contracts/ContractNames'; import { FORUM_CONTRACT } from '../../constants/contracts/ContractNames';
@ -58,10 +60,12 @@ const PostList = (props) => {
}, [focusOnPost, getPostCallHashes, loading, postIds]); }, [focusOnPost, getPostCallHashes, loading, postIds]);
return ( return (
<Dimmer.Dimmable as={Feed} blurring dimmed={loading} id="post-list" size="large">
<Loader active={loading} /> <Dimmer.Dimmable as={Feed} blurring dimmed={loading} id="post-list" size="large">
{posts} <Loader active={loading} />
</Dimmer.Dimmable> {posts}
</Dimmer.Dimmable>
); );
}; };

128
packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx

@ -2,11 +2,12 @@ import React, {
memo, useEffect, useMemo, useState, memo, useEffect, useMemo, useState,
} from 'react'; } from 'react';
import { import {
Dimmer, Grid, Image, Item, List, Placeholder, Segment, Dimmer, Grid, Icon, Image, Item, List, Placeholder, Segment,
} from 'semantic-ui-react'; } from 'semantic-ui-react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import TimeAgo from 'react-timeago'; import TimeAgo from 'react-timeago';
import { useHistory } from 'react-router';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { FETCH_USER_DATABASE } from '../../../redux/actions/peerDbReplicationActions'; import { FETCH_USER_DATABASE } from '../../../redux/actions/peerDbReplicationActions';
@ -33,6 +34,7 @@ const TopicListRow = (props) => {
const topics = useSelector((state) => state.orbitData.topics); const topics = useSelector((state) => state.orbitData.topics);
const users = useSelector((state) => state.orbitData.users); const users = useSelector((state) => state.orbitData.users);
const dispatch = useDispatch(); const dispatch = useDispatch();
const history = useHistory();
const { t } = useTranslation(); const { t } = useTranslation();
useEffect(() => { useEffect(() => {
@ -40,7 +42,7 @@ const TopicListRow = (props) => {
setTopicAuthorAddress(getTopicResults[topicCallHash].value[0]); setTopicAuthorAddress(getTopicResults[topicCallHash].value[0]);
setTopicAuthor(getTopicResults[topicCallHash].value[1]); setTopicAuthor(getTopicResults[topicCallHash].value[1]);
setTimeAgo(getTopicResults[topicCallHash].value[2] * 1000); setTimeAgo(getTopicResults[topicCallHash].value[2] * 1000);
setNumberOfReplies(getTopicResults[topicCallHash].value[3].length); setNumberOfReplies(getTopicResults[topicCallHash].value[3].length - 1);
} }
}, [getTopicResults, loading, topicCallHash]); }, [getTopicResults, loading, topicCallHash]);
@ -121,65 +123,69 @@ const TopicListRow = (props) => {
return authorAvatar; return authorAvatar;
}, [authorAvatar, topicAuthorAddress]); }, [authorAvatar, topicAuthorAddress]);
return useMemo(() => ( return useMemo(() => {
<Dimmer.Dimmable as={List.Item} blurring dimmed={loading} className="topic-row"> const handleTopicClick = () => {
<Segment raised className="topic-row-segment" as="a"> history.push(`/topics/${topicId}`);
<Grid doubling columns={2}> };
<Grid.Column width={1} className="topic-row-avatar"> return (
<Item> <Dimmer.Dimmable as={List.Item} blurring dimmed={loading} className="topic-row" onClick={handleTopicClick}>
{authorAvatarLink} <Segment className="topic-row-segment">
</Item> <Grid columns={2}>
</Grid.Column> <Grid.Column width={1} className="topic-row-avatar">
<Grid.Column width={15} className="topic-row-content"> <Item>
<Link to={`/topics/${topicId}`} onClick={stopClickPropagation}> {authorAvatarLink}
<Grid verticalAlign="middle" columns={2}> </Item>
<Grid.Row> </Grid.Column>
<Grid.Column floated="left" width={14} className="topic-row-subject"> <Grid.Column width={15} className="topic-row-content">
{topicSubject !== null <Grid verticalAlign="middle" columns={2}>
? topicSubject <Grid.Row>
: <Placeholder><Placeholder.Line length="very long" /></Placeholder>} <Grid.Column floated="left" width={14} className="topic-row-subject">
</Grid.Column> {topicSubject !== null
<Grid.Column floated="right" width={2} textAlign="right"> ? topicSubject
<span className="topic-row-metadata"> : <Placeholder><Placeholder.Line length="very long" /></Placeholder>}
{t('topic.list.row.topic.id', { id: topicId })} </Grid.Column>
</span> <Grid.Column floated="right" width={2} textAlign="right">
</Grid.Column> <span className="topic-row-metadata">
</Grid.Row> {t('topic.list.row.topic.id', { id: topicId })}
<Grid.Row> </span>
<Grid.Column floated="left" width={14}> </Grid.Column>
{topicAuthor !== null && timeAgo !== null </Grid.Row>
? ( <Grid.Row>
<div> <Grid.Column floated="left" width={14}>
<TimeAgo date={timeAgo} /> {topicAuthor !== null && timeAgo !== null
&nbsp;&nbsp; ? (
<Link to={`/users/${topicAuthorAddress}`} onClick={stopClickPropagation}> <div>
{topicAuthor} <TimeAgo date={timeAgo} />
</Link> &nbsp;&nbsp;
</div> <Link to={`/users/${topicAuthorAddress}`} onClick={stopClickPropagation}>
) {topicAuthor}
: <Placeholder><Placeholder.Line length="long" /></Placeholder>} </Link>
</Grid.Column> </div>
<Grid.Column floated="right" width={2} textAlign="right"> )
{numberOfReplies !== null : <Placeholder><Placeholder.Line length="long" /></Placeholder>}
? ( </Grid.Column>
<span className="topic-row-metadata"> <Grid.Column floated="right" width={2} textAlign="right">
{t('topic.list.row.number.of.replies', { numberOfReplies })} {numberOfReplies !== null
</span> ? (
) <span className="topic-row-metadata">
: <Placeholder fluid><Placeholder.Line /></Placeholder>} <Icon name="reply" fitted />
</Grid.Column> &nbsp;
</Grid.Row> { numberOfReplies }
</Grid> </span>
)
</Link> : <Placeholder fluid className="replies-placeholder"><Placeholder.Line /></Placeholder>}
</Grid.Column> </Grid.Column>
</Grid> </Grid.Row>
</Grid>
</Segment> </Grid.Column>
</Grid>
</Dimmer.Dimmable>
</Segment>
), [authorAvatarLink, loading, numberOfReplies, t, timeAgo, topicAuthor, topicAuthorAddress, topicId, topicSubject]);
</Dimmer.Dimmable>
);
}, [authorAvatarLink, history, loading, numberOfReplies, t, timeAgo, topicAuthor, topicAuthorAddress, topicId, topicSubject]);
}; };
TopicListRow.defaultProps = { TopicListRow.defaultProps = {

25
packages/concordia-app/src/components/TopicList/TopicListRow/styles.css

@ -1,6 +1,7 @@
.topic-row { .topic-row {
display: flex !important; display: flex !important;
text-align: start; text-align: start;
cursor: pointer;
} }
.topic-row-segment { .topic-row-segment {
@ -8,18 +9,26 @@
} }
.topic-row-segment:hover { .topic-row-segment:hover {
background-color: rgba(0, 0, 0, 0.03); background-color: #F7F7F7;
} }
.topic-row-segment div { .topic-row-segment div {
color: black; color: black;
} }
.topic-row-segment .placeholder{
font-size: 0.9rem;
}
.topic-row-segment .placeholder>.line {
background-color:transparent;
}
.topic-row-avatar { .topic-row-avatar {
margin: auto; margin: auto;
padding-left: 0.75em !important; padding-left: 0.75em !important;
padding-right: 0 !important; padding-right: 0 !important;
font-size: 2em; font-size: 2rem;
} }
.topic-row-avatar i { .topic-row-avatar i {
@ -28,17 +37,16 @@
} }
.topic-row-content { .topic-row-content {
padding-left: 2em !important; padding-left: 2rem !important;
} }
.topic-row-subject { .topic-row-subject {
font-size: 1.25em; font-size: 1.4rem;
font-weight: bold; font-weight: bold;
} }
.topic-row-metadata { .topic-row-metadata {
font-size: 12px !important; font-size: 0.9em !important;
font-weight: initial;
} }
.profile-picture { .profile-picture {
@ -47,3 +55,8 @@
width: 2em; width: 2em;
height: 2em; height: 2em;
} }
.replies-placeholder{
float:right;
width: 6rem;
}

12
packages/concordia-app/src/components/TopicList/index.jsx

@ -58,12 +58,12 @@ const TopicList = (props) => {
<div> <div>
{hasSignedUp && history.location.pathname === '/home' && ( {hasSignedUp && history.location.pathname === '/home' && (
<Button <Button
content="New Topic" content="New Topic"
icon="plus" icon="plus"
labelPosition="left" labelPosition="left"
positive positive
id="new-topic-button" id="new-topic-button"
onClick={() => history.push('/topics/new')} onClick={() => history.push('/topics/new')}
/> />
)} )}
<List id="topic-list" size="big"> <List id="topic-list" size="big">

107
packages/concordia-app/src/views/Topic/TopicView/index.jsx

@ -2,10 +2,11 @@ import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
import { import {
Container, Dimmer, Icon, Image, Placeholder, Step, Container, Dimmer, Divider, Header, Icon, Placeholder, Segment,
} from 'semantic-ui-react'; } from 'semantic-ui-react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { useHistory } from 'react-router'; import { useHistory } from 'react-router';
import TimeAgo from 'react-timeago'; import TimeAgo from 'react-timeago';
import { breeze, drizzle } from '../../../redux/store'; import { breeze, drizzle } from '../../../redux/store';
import { FETCH_USER_DATABASE } from '../../../redux/actions/peerDbReplicationActions'; import { FETCH_USER_DATABASE } from '../../../redux/actions/peerDbReplicationActions';
@ -13,7 +14,6 @@ import './styles.css';
import PostList from '../../../components/PostList'; import PostList from '../../../components/PostList';
import { TOPICS_DATABASE, USER_DATABASE } from '../../../constants/orbit/OrbitDatabases'; import { TOPICS_DATABASE, USER_DATABASE } from '../../../constants/orbit/OrbitDatabases';
import determineKVAddress from '../../../utils/orbitUtils'; import determineKVAddress from '../../../utils/orbitUtils';
import { USER_PROFILE_PICTURE } from '../../../constants/orbit/UserDatabaseKeys';
import { TOPIC_SUBJECT } from '../../../constants/orbit/TopicsDatabaseKeys'; import { TOPIC_SUBJECT } from '../../../constants/orbit/TopicsDatabaseKeys';
import PostCreate from '../../../components/PostCreate'; import PostCreate from '../../../components/PostCreate';
import { FORUM_CONTRACT } from '../../../constants/contracts/ContractNames'; import { FORUM_CONTRACT } from '../../../constants/contracts/ContractNames';
@ -36,9 +36,9 @@ const TopicView = (props) => {
const [getTopicCallHash, setGetTopicCallHash] = useState([]); const [getTopicCallHash, setGetTopicCallHash] = useState([]);
const [topicAuthorAddress, setTopicAuthorAddress] = useState(initialTopicAuthorAddress || null); const [topicAuthorAddress, setTopicAuthorAddress] = useState(initialTopicAuthorAddress || null);
const [topicAuthor, setTopicAuthor] = useState(initialTopicAuthor || null); const [topicAuthor, setTopicAuthor] = useState(initialTopicAuthor || null);
const [topicAuthorMeta, setTopicAuthorMeta] = useState(null);
const [timestamp, setTimestamp] = useState(initialTimestamp || null); const [timestamp, setTimestamp] = useState(initialTimestamp || null);
const [postIds, setPostIds] = useState(initialPostIds || null); const [postIds, setPostIds] = useState(initialPostIds || null);
const [numberOfReplies, setReplyCount] = useState(0);
const [topicSubject, setTopicSubject] = useState(null); const [topicSubject, setTopicSubject] = useState(null);
const history = useHistory(); const history = useHistory();
const dispatch = useDispatch(); const dispatch = useDispatch();
@ -66,7 +66,9 @@ const TopicView = (props) => {
setTopicAuthorAddress(getTopicResults[getTopicCallHash].value[0]); setTopicAuthorAddress(getTopicResults[getTopicCallHash].value[0]);
setTopicAuthor(getTopicResults[getTopicCallHash].value[1]); setTopicAuthor(getTopicResults[getTopicCallHash].value[1]);
setTimestamp(getTopicResults[getTopicCallHash].value[2] * 1000); setTimestamp(getTopicResults[getTopicCallHash].value[2] * 1000);
setPostIds(getTopicResults[getTopicCallHash].value[3].map((postId) => parseInt(postId, 10))); const postIds = getTopicResults[getTopicCallHash].value[3].map((postId) => parseInt(postId, 10));
setPostIds(postIds);
setReplyCount(postIds.length - 1);
const topicFound = topics const topicFound = topics
.find((topic) => topic.id === topicId); .find((topic) => topic.id === topicId);
@ -89,9 +91,7 @@ const TopicView = (props) => {
const userFound = users const userFound = users
.find((user) => user.id === userOrbitAddress); .find((user) => user.id === userOrbitAddress);
if (userFound) { if (!userFound) {
setTopicAuthorMeta(userFound);
} else {
dispatch({ dispatch({
type: FETCH_USER_DATABASE, type: FETCH_USER_DATABASE,
orbit, orbit,
@ -115,66 +115,43 @@ const TopicView = (props) => {
} }
}, [topicId, topics]); }, [topicId, topics]);
const stopClickPropagation = (event) => {
event.stopPropagation();
};
return ( return (
<Container id="topic-container" textAlign="center"> <Container id="topic-container" textAlign="center">
<Dimmer.Dimmable <Segment>
blurring <Dimmer.Dimmable
dimmed={topicAuthorAddress === null && topicAuthor === null && timestamp === null} blurring
> dimmed={topicAuthorAddress === null && topicAuthor === null && timestamp === null}
<Step.Group fluid> >
<Step key="topic-header-step-user"> <Header as="h2">
<Link to={`/users/${topicAuthorAddress}`}> {topicSubject || (
{topicAuthorMeta !== null && topicAuthorMeta[USER_PROFILE_PICTURE] <Placeholder id="subject-placeholder">
? ( <Placeholder.Line />
<Image </Placeholder>
avatar )}
src={topicAuthorMeta[USER_PROFILE_PICTURE]} </Header>
/>
) <div id="topic-metadata">
: ( <Icon name="calendar alternate" fitted />
<Icon &nbsp;
name="user circle" <TimeAgo date={timestamp} />
size="big" &nbsp;&nbsp;
inverted <Icon name="user" fitted />
color="black" &nbsp;
/> <Link to={`/users/${topicAuthorAddress}`} onClick={stopClickPropagation}>{ topicAuthor }</Link>
)} &nbsp;&nbsp;
</Link> <Icon name="reply" fitted />
<Step.Content> &nbsp;
<Step.Title> { numberOfReplies }
<Link to={`/users/${topicAuthorAddress}`}> </div>
{topicAuthor || ( <Divider />
<Placeholder id="author-placeholder" inverted> </Dimmer.Dimmable>
<Placeholder.Line length="full" /> <PostList postIds={postIds || []} loading={postIds === null} focusOnPost={focusOnPost} />
</Placeholder> </Segment>
)}
</Link>
</Step.Title>
</Step.Content>
</Step>
<Step key="topic-header-step-title">
<Step.Content>
<Step.Title>
{topicSubject || (
<Placeholder id="subject-placeholder">
<Placeholder.Line length="full" />
</Placeholder>
)}
</Step.Title>
<Step.Description>
{timestamp
? <TimeAgo date={timestamp} />
: (
<Placeholder id="date-placeholder">
<Placeholder.Line length="full" />
</Placeholder>
)}
</Step.Description>
</Step.Content>
</Step>
</Step.Group>
</Dimmer.Dimmable>
<PostList postIds={postIds || []} loading={postIds === null} focusOnPost={focusOnPost} />
{topicSubject !== null && postIds !== null && hasSignedUp && ( {topicSubject !== null && postIds !== null && hasSignedUp && (
<PostCreate <PostCreate
topicId={topicId} topicId={topicId}

6
packages/concordia-app/src/views/Topic/TopicView/styles.css

@ -6,12 +6,18 @@
height: 100%; height: 100%;
} }
#topic-metadata {
font-size: 0.8em;
color: rgba(0,0,0,.5);
}
#author-placeholder { #author-placeholder {
width: 150px !important; width: 150px !important;
} }
#subject-placeholder { #subject-placeholder {
width: 250px !important; width: 250px !important;
margin:auto;
} }
#date-placeholder { #date-placeholder {

Loading…
Cancel
Save