Skip to content

Commit

Permalink
Merge pull request #91 from MichiganDataScienceTeam/bugfix-aspect
Browse files Browse the repository at this point in the history
(bug) fix image aspect ratio
  • Loading branch information
Weile-Zheng authored Sep 9, 2024
2 parents 33a079e + dab923b commit 95dc745
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/communityImages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export default function CommunityImages({ images, basePath }) {
};

return (
<div className="flex flex-col items-center mx-auto max-w-6xl">
<div className="relative w-full">
<div className="items-center mx-auto max-w-6xl">
<div className="relative">
<button
onClick={prevImage}
className="absolute left-0 top-1/2 transform -translate-y-1/2 bg-gray-500 text-white p-2 rounded"
Expand All @@ -26,8 +26,8 @@ export default function CommunityImages({ images, basePath }) {
<div
style={{
margin: "auto",
width: "1000px",
height: "600px",
width: "85%",
aspectRatio: 16 / 9,
}}
>
<img
Expand Down

0 comments on commit 95dc745

Please sign in to comment.