on master help sign in
pages/organizations: enforce same aspect ratio with children

Prevents weird behaviour when icons aren't square.

commit1d43e51b011f05cc71ec5ea9bb68cfef7e8edca5 authorMatilde Park <matilde.park@urbit.org> dateMon 31 Oct 2022, 17:32 (4 years ago) parent3c1b491
1 file changed+1−1
pages/organizations/[slug].js+1−1
pages/organizations/[slug].js+1−1
@@ -52,7 +52,7 @@ export default function Organization({
5252 }}
5353 >
5454 {app.image && (
55− <img src={app.image} className="h-full w-full" />
55+ <img src={app.image} className="h-full w-full" style={{ aspectRatio: "1" }} />
5656 )}
5757 </div>
5858 <p className="text-center font-bold font-xl">{app.title}</p>