From f0c50eecb7437fcfe99b5736fd62936360c3452c Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Sep 2020 01:03:51 -0700 Subject: [PATCH] align item elements to the ~top of the row Essentially I want the center-y visual balance around the image, and the name and _one_ line of tags. If there are extra tags, I want that to go down on its own, rather than bringing down the image+buttons to center against them. The single-line-of-tags case is the most common, and I think it makes things feel more consistent for all the items to stick to that basic layout, while trying to keep that layout feeling center-y --- src/app/WardrobePage/Item.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/WardrobePage/Item.js b/src/app/WardrobePage/Item.js index ab8f55d..a220bce 100644 --- a/src/app/WardrobePage/Item.js +++ b/src/app/WardrobePage/Item.js @@ -73,7 +73,7 @@ function Item({ isDisabled={isDisabled} /> - + {item.name} @@ -109,7 +109,7 @@ function Item({ ))} - + {isInOutfit && ( } @@ -159,7 +159,7 @@ function ItemSkeleton() { - + ); } @@ -195,7 +195,6 @@ function ItemContainer({ children, isDisabled = false }) { my="1" borderRadius="lg" d="flex" - alignItems="center" cursor={isDisabled ? undefined : "pointer"} border="1px" borderColor="transparent"