From 6b176db914a29e200cd44f7731eb1821e20eccd7 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 22 May 2020 18:00:10 +1000 Subject: [PATCH] Updated list token size to cover fit --- src/components/token/ListToken.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/token/ListToken.js b/src/components/token/ListToken.js index 690d593..f7ff1fe 100644 --- a/src/components/token/ListToken.js +++ b/src/components/token/ListToken.js @@ -19,7 +19,13 @@ function ListToken({ token, className }) { src={imageSource} ref={imageRef} className={className} - sx={{ userSelect: "none", touchAction: "none" }} + sx={{ + userSelect: "none", + touchAction: "none", + width: "100%", + height: "100%", + objectFit: "cover", + }} // pass id into the dom element which is then used by the ProxyToken data-id={token.id} />