From ad9e8cc1d5c9323d4cf332c3696a4939d186e616 Mon Sep 17 00:00:00 2001 From: Wethmi Ranasinghe Date: Wed, 18 Sep 2024 11:15:53 +0530 Subject: [PATCH] Update on News --- front-end/src/Pages/Gallery.jsx | 2 +- front-end/src/Pages/News.jsx | 4 ++-- front-end/src/components/News.css | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/front-end/src/Pages/Gallery.jsx b/front-end/src/Pages/Gallery.jsx index d5c1dcbe..b624c508 100644 --- a/front-end/src/Pages/Gallery.jsx +++ b/front-end/src/Pages/Gallery.jsx @@ -143,7 +143,7 @@ const Gallery = () => {
- +
diff --git a/front-end/src/Pages/News.jsx b/front-end/src/Pages/News.jsx index 93953a3b..c98ea7d4 100644 --- a/front-end/src/Pages/News.jsx +++ b/front-end/src/Pages/News.jsx @@ -148,7 +148,7 @@ const News = () => {
- +
@@ -169,7 +169,7 @@ const News = () => {

{item.newsDescription}

{/* News description */}

Date: {item.newsDate}

{/* News date */}

Author: {item.newsAuthor}

{/* News author */} - Read more {/* Link to full news */} + {/* Read more Link to full news */} {/* Show edit and delete buttons only if user is logged in */} {loggedInUser.isLoggedIn && ( diff --git a/front-end/src/components/News.css b/front-end/src/components/News.css index 6a06874d..5d40ff0c 100644 --- a/front-end/src/components/News.css +++ b/front-end/src/components/News.css @@ -138,6 +138,7 @@ opacity: 0.8; } + /* Responsive styles for screens smaller than 768px */ @media (max-width: 768px) { .add-news-form {