diff --git a/src/newsreader/js/pages/homepage/components/PostModal.js b/src/newsreader/js/pages/homepage/components/PostModal.js index 6da8044..9746aee 100644 --- a/src/newsreader/js/pages/homepage/components/PostModal.js +++ b/src/newsreader/js/pages/homepage/components/PostModal.js @@ -73,55 +73,60 @@ class PostModal extends React.Component { return (
-
- - -
-

{`${post.title} `}

-
- - {publicationDate} {this.props.timezone} - - {post.author && {post.author}} - {this.props.category && ( - - - {this.props.category.name} +
+ + +
+
diff --git a/src/newsreader/scss/components/post/_post.scss b/src/newsreader/scss/components/post/_post.scss index 64773eb..cf64836 100644 --- a/src/newsreader/scss/components/post/_post.scss +++ b/src/newsreader/scss/components/post/_post.scss @@ -15,6 +15,17 @@ cursor: initial; + &__header { + display: flex; + flex-direction: column; + align-items: center; + + position: sticky; + top: 0; + + width: 100%; + } + &__actions { display: flex; justify-content: flex-end; @@ -24,10 +35,11 @@ gap: 20px; } - &__header { + &__heading { display: flex; flex-direction: column; padding: 20px 0 10px 0; + width: 75%; }