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

[DEV-11478] Support different layouts for Embed #68

Conversation

mohammadxali
Copy link
Contributor

No description provided.

@mohammadxali mohammadxali self-assigned this Aug 28, 2023
@mohammadxali mohammadxali added the enhancement New feature or request label Aug 28, 2023
@mohammadxali mohammadxali marked this pull request as draft August 28, 2023 11:23
@mohammadxali mohammadxali marked this pull request as ready for review August 28, 2023 11:33
Comment on lines +13 to +16
&--contained {
margin-left: auto;
margin-right: auto;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this necessary? As far as I understand, embeds were always contained before, and it worked. Right?

Copy link
Contributor Author

@mohammadxali mohammadxali Aug 28, 2023

Choose a reason for hiding this comment

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

They had 0px for the left and right margin:

margin: $block-spacing-vertical 0;

Plus, I guess having the --contained modifier allows for more customization from outside for people using this, so it's good.

Do you think it makes sense to update the Storybook with the new layouts as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it makes sense to update the Storybook with the new layouts as well?

Absolutely! 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added: 8ee61e9

In order to get this panel in Storybook:
image

Do this:

  1. Press a on keyboard
  2. Then press d

That's just how weird Storybook is.

Copy link
Contributor

@e1himself e1himself left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@e1himself e1himself left a comment

Choose a reason for hiding this comment

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

👍

@mohammadxali mohammadxali merged commit f3bc4b5 into master Aug 28, 2023
9 checks passed
@mohammadxali mohammadxali deleted the feature/dev-11478-support-embednode-layout-in-prezlycontent-renderer-react-js branch August 28, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants