-
Notifications
You must be signed in to change notification settings - Fork 0
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
Creating Stories for Card, Banner, Media with Caption. #7
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I'm not sure how much details the VS code in gitpod provides. My phpstorm tells me this: You can look at the card.stories.tsx and see how the |
I added classes for the Media caption. I added the |
@jenbreese I don't understand what you mean by "nextjs version of the site". It looks like your story book story is working correctly for the media with caption. |
I thought it has to work on the Storybook (port 6006) and the port 3000 site where the file |
Oh thank you. It was missing from the GQL queries. You can see where I added the missing fields in the fragments here: d5e5297 |
@pookmish Thank you thank you thank you. |
{paragraph.suBannerSupHeader} | ||
</div> | ||
} | ||
|
||
<Wysiwyg html={paragraph.suBannerBody?.processed} className="order-3"/> | ||
<Wysiwyg html={paragraph.suBannerBody?.processed} className="order-3 text-m0"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a 100ch width applied to the p within this. It keeps it from aligning flush right to the image edge. @pookmish Do you know the best way to fix that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I know what you mean. when should the text align to the image edge of the banner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry @pookmish That comment should have gone on the media with caption file.
cardinal-sites-next/src/components/paragraphs/stanford-media-caption/media-caption-paragraph.tsx
Line 40 in a440083
<Wysiwyg html={paragraph.suMediaCaptionCaption?.processed}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it is right aligned fine now for me too. 🤷🏼♀️
* Minor search box edits * fixup to color * fixup
READY FOR REVIEW
Summary
Review By (Date)
Criticality
Review Tasks
Setup tasks and/or behavior to test