Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sources in default card #16

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add sources in default card #16

wants to merge 6 commits into from

Conversation

breezykermo
Copy link
Member

This modifies the default card so that it lays out sources inline in the card. It's fairly lo-fi for now, but it should at least return the ability to use sources in the canonical timemap format.

pic-selected-211022-1204-57

(Note that the markdown and image sources here are due to the local URLs in the example datasheet-server sheet: I'll update those to remote URLs so that the whole ecosystem works better for new users 'out-of-the-box'.)

@ebefarooqui
Copy link
Collaborator

Could you remove the dist folder from the PR?

...CardProps,
export const DefaultCard = Template.bind({});
DefaultCard.args = {
content: generateCardLayout['default']({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this block out to a separate file? Namely, the mock data here

@@ -29,11 +26,6 @@ export const Card = ({
/>
);

const renderCaret = () =>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a rationale here for removing the caret? I think it's useful, especially when the user begins to tack on enough sources forcing the user to scroll past every source when attempting to access a card further below in the stack. This is currently a visual issue with the yemen platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants