diff --git a/scm-ui/ui-components/src/CardColumn.stories.tsx b/scm-ui/ui-components/src/CardColumn.stories.tsx index 276e357bbe..d2a59e0d4b 100644 --- a/scm-ui/ui-components/src/CardColumn.stories.tsx +++ b/scm-ui/ui-components/src/CardColumn.stories.tsx @@ -27,6 +27,8 @@ import { storiesOf } from "@storybook/react"; import CardColumn from "./CardColumn"; import Icon from "./Icon"; import styled from "styled-components"; +import { DateFromNow } from "."; +import repository from "./__resources__/repository"; const Wrapper = styled.div` margin: 2rem; @@ -40,6 +42,7 @@ const avatar = ; const title = title; const footerLeft = left footer; const footerRight = right footer; +const baseDate = "2020-03-26T12:13:42+02:00"; storiesOf("CardColumn", module) .addDecorator(story => {story()}) @@ -60,4 +63,10 @@ storiesOf("CardColumn", module) footerLeft={footerLeft} footerRight={footerRight} /> - )); + )) + .add("with hoverable date", () => ( + + + } /> + )); diff --git a/scm-ui/ui-components/src/CardColumn.tsx b/scm-ui/ui-components/src/CardColumn.tsx index c85e15371a..70d3da1946 100644 --- a/scm-ui/ui-components/src/CardColumn.tsx +++ b/scm-ui/ui-components/src/CardColumn.tsx @@ -74,6 +74,7 @@ const RightMarginDiv = styled.div` const InheritFlexShrinkDiv = styled.div` flex-shrink: inherit; + pointer-events: all; `; const CardColumn: FC = ({ diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 1c61844bf6..26b6c0c320 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -498,7 +498,7 @@ exports[`Storyshots CardColumn default 1`] = `
right footer @@ -546,7 +546,7 @@ exports[`Storyshots CardColumn minimal 1`] = `
right footer @@ -558,6 +558,61 @@ exports[`Storyshots CardColumn minimal 1`] = `
`; +exports[`Storyshots CardColumn with hoverable date 1`] = ` +
+
+
+
+
+

+ + title + +

+
+
+
+
+ + left footer + +
+
+ + + +
+
+
+
+
+`; + exports[`Storyshots CardColumnSmall default 1`] = `