Skip to content

Commit 95dc745

Browse files
authored
Merge pull request #91 from MichiganDataScienceTeam/bugfix-aspect
(bug) fix image aspect ratio
2 parents 33a079e + dab923b commit 95dc745

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/communityImages.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export default function CommunityImages({ images, basePath }) {
1515
};
1616

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

0 commit comments

Comments
 (0)