Skip to content

Commit

Permalink
fix: responsiveness (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonfyw authored Dec 7, 2023
1 parent f9d81a9 commit f93c349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions P3/frontend/src/components/review/Review.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const Review = ({ review }) => {

return (
<div class="review py-4 flex flex-row items-start gap-4">
<Avatar src={reviewUser?.avatar === null ? '/logo.svg' : reviewUser?.avatar} alt="profile" className="w-16 h-16" />
<div className="w-full">
<div class="flex flex-row justify-between">
<Avatar src={reviewUser?.avatar === null ? '/logo.svg' : reviewUser?.avatar} alt="profile" className="size-16" />
<div className="w-10/12">
<div class="flex flex-col xl:flex-row justify-between">
<p class="text-md font-semibold">{reviewUser?.username}</p>
<p class="text-md font-semibold text-[#ff9447]">{(new Date(review.date_created)).toLocaleTimeString('en-US', {
year: "numeric",
Expand Down
2 changes: 1 addition & 1 deletion P3/frontend/src/pages/ShelterDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const ShelterDetail = () => {
</div>
</Container>
)}
<Container className="px-12 py-8">
<Container className="px-4 md:px-12 py-8">
<div className="flex flex-row justify-between items-center">
<Heading><h1 class="mt-0 text-[1.75rem] font-semibold mb-4">Reviews</h1></Heading>
{
Expand Down

0 comments on commit f93c349

Please sign in to comment.