pack planet cards more compactly
This commit is contained in:
@@ -11,14 +11,8 @@ const StackItem = styled(Stack)(({ theme }) => ({
|
|||||||
|
|
||||||
export const NoPlanetCard = ({}: {}) => {
|
export const NoPlanetCard = ({}: {}) => {
|
||||||
return (
|
return (
|
||||||
<StackItem alignItems="flex-start" className="poop" height="100%">
|
<StackItem alignItems="flex-start" height="100%">
|
||||||
<Image
|
<Image src={`/noplanet.png`} alt="" width={120} height={120} />
|
||||||
src={`/noplanet.png`}
|
|
||||||
alt=""
|
|
||||||
width={120}
|
|
||||||
height={120}
|
|
||||||
style={{ marginBottom: "0.2rem" }}
|
|
||||||
/>
|
|
||||||
<Image
|
<Image
|
||||||
width={64}
|
width={64}
|
||||||
height={64}
|
height={64}
|
||||||
|
@@ -10,6 +10,7 @@ import Countdown from "react-countdown";
|
|||||||
const StackItem = styled(Stack)(({ theme }) => ({
|
const StackItem = styled(Stack)(({ theme }) => ({
|
||||||
...theme.typography.body2,
|
...theme.typography.body2,
|
||||||
padding: 0,
|
padding: 0,
|
||||||
|
margin: "0 !important",
|
||||||
textAlign: "left",
|
textAlign: "left",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
@@ -95,13 +96,12 @@ export const PlanetCard = ({
|
|||||||
getPlanet(character, planet).then(setPlanetInfo);
|
getPlanet(character, planet).then(setPlanetInfo);
|
||||||
}, [planet, character]);
|
}, [planet, character]);
|
||||||
return (
|
return (
|
||||||
<StackItem alignItems="flex-start" className="poop" height="100%">
|
<StackItem alignItems="flex-start" height="100%">
|
||||||
<Image
|
<Image
|
||||||
src={`/${planet.planet_type}.png`}
|
src={`/${planet.planet_type}.png`}
|
||||||
alt=""
|
alt=""
|
||||||
width={120}
|
width={120}
|
||||||
height={120}
|
height={120}
|
||||||
style={{ marginBottom: "0.2rem" }}
|
|
||||||
/>
|
/>
|
||||||
{extractors.some((e) => {
|
{extractors.some((e) => {
|
||||||
if (!e) return true;
|
if (!e) return true;
|
||||||
|
Reference in New Issue
Block a user