From e6b78fe217e387e5fe711e0f3aab3957d9c6997b Mon Sep 17 00:00:00 2001 From: benjacanas Date: Mon, 11 Apr 2022 14:36:58 -0300 Subject: [PATCH 1/2] expanded grid title y ver mas --- src/components/expandGrid/ExpandGrid.js | 13 +++++++++--- src/components/expandGrid/expandGrid.scss | 25 +++++++++++++++++------ 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/components/expandGrid/ExpandGrid.js b/src/components/expandGrid/ExpandGrid.js index c7810ad8..e9948d6e 100644 --- a/src/components/expandGrid/ExpandGrid.js +++ b/src/components/expandGrid/ExpandGrid.js @@ -1,3 +1,4 @@ +import { Link } from "gatsby" import React, { useEffect, useRef, useState } from "react" import { Flipper, Flipped } from "react-flip-toolkit" import MarkdownView from "react-showdown" @@ -36,7 +37,7 @@ const ListItem = ({ index, onClick, data }) => {
-

Ver mas

+

{data.title}

{ } const ExpandedListItem = ({ index, data, isFirst }) => { + console.log(data) return ( { > -
+
+

{data.title}

+ {data.landing_page && ( + Ver más + )}
@@ -113,7 +121,6 @@ const AnimatedList = ({ items }) => { } } } - return ( div { opacity: 0; border-radius: 3px; + display: flex; + flex-direction: column; + height: 100%; + p { + max-height: 10vw; + overflow: hidden; + text-overflow: ellipsis; + } + a{ + color: $secondary; + text-decoration: underline; + margin: auto 0 10px 10px; + } h4 { text-align: left; } From 8b771af8603e73f791160372ee2e5141b31deda6 Mon Sep 17 00:00:00 2001 From: benjacanas Date: Mon, 11 Apr 2022 14:40:16 -0300 Subject: [PATCH 2/2] console log --- src/components/expandGrid/ExpandGrid.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/expandGrid/ExpandGrid.js b/src/components/expandGrid/ExpandGrid.js index e9948d6e..d892157a 100644 --- a/src/components/expandGrid/ExpandGrid.js +++ b/src/components/expandGrid/ExpandGrid.js @@ -55,7 +55,6 @@ const ListItem = ({ index, onClick, data }) => { } const ExpandedListItem = ({ index, data, isFirst }) => { - console.log(data) return (