diff --git a/src/components/Article/Comment.module.scss b/src/components/Article/Comment.module.scss index 50064a39..1344c1fd 100644 --- a/src/components/Article/Comment.module.scss +++ b/src/components/Article/Comment.module.scss @@ -3,6 +3,7 @@ margin: 0 -2.4rem 1.5em; padding: 0.8rem 2.4rem; transition: background-color 0.3s; + border: 1px solid red; &:hover { background-color: #f6f6f6; @@ -32,25 +33,25 @@ } } -.commentLevel1 { - margin-left: 3.2rem; -} - -.commentLevel2 { - margin-left: 6.4rem; -} - -.commentLevel3 { - margin-left: 9.6rem; -} - -.commentLevel4 { - margin-left: 12.8rem; -} - -.commentLevel5 { - margin-left: 16rem; -} +//.commentLevel1 { +// margin-left: 3.2rem; +//} +// +//.commentLevel2 { +// margin-left: 6.4rem; +//} +// +//.commentLevel3 { +// margin-left: 9.6rem; +//} +// +//.commentLevel4 { +// margin-left: 12.8rem; +//} +// +//.commentLevel5 { +// margin-left: 16rem; +//} .commentControls { @include font-size(1.2rem); diff --git a/src/components/Article/Comment.tsx b/src/components/Article/Comment.tsx index 0b3e5ee9..1f5411cf 100644 --- a/src/components/Article/Comment.tsx +++ b/src/components/Article/Comment.tsx @@ -12,6 +12,7 @@ import { formatDate } from '../../utils' import { SharePopup } from './SharePopup' import stylesHeader from '../Nav/Header.module.scss' import Userpic from '../Author/Userpic' +import CommentWrapper from './CommentWrapper' export default (props: { level?: number @@ -34,114 +35,116 @@ export default (props: { ) return ( -
- - - } - > -
-
- -
- -
{formattedDate()}
-
0, - [styles.commentRatingNegative]: comment().stat?.rating < 0 - }} - > -
-
-
- -
- -
- - -
- - - - {/*FIXME implement edit comment modal*/} - {/* showModal('editComment')}*/} - {/*>*/} - {/* */} - {/* {t('Edit')}*/} - {/**/} - - - - - - {t('Share')} - - } - /> - - {/* showModal('reportComment')}*/} - {/*>*/} - {/* {t('Report')}*/} - {/**/} -
- - -
-