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

feat: announcement modal image for memos #2198

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

halfwhole
Copy link
Collaborator

@halfwhole halfwhole commented Apr 11, 2023

Problem

We want to add the announcement modal image for memos

Also, the announcement modal image can be unnecessarily big or have lopsided proportions because the width and height are locked into specific values.

Solution

  • Add the announcement modal image for memos
  • Change width and height for the image to maxWidth and maxHeight, allowing either the actual width or height to be smaller in order to preserve image proportions.

Before & After Screenshots

BEFORE:
Screenshot 2023-04-11 at 11 13 01 AM
Screenshot 2023-04-11 at 11 13 09 AM

AFTER:
Screenshot 2023-04-11 at 11 10 50 AM

@halfwhole halfwhole changed the title fix: styling for announcement modal image feat: announcement modal image for memos Apr 11, 2023
@halfwhole halfwhole force-pushed the fix/announcement-modal-image-styling branch from b820a4f to 938a579 Compare April 12, 2023 09:15
Copy link
Contributor

@gweiying gweiying left a comment

Choose a reason for hiding this comment

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

lgtm!

@halfwhole halfwhole merged commit e2529c5 into develop Apr 13, 2023
@halfwhole halfwhole deleted the fix/announcement-modal-image-styling branch April 13, 2023 02:23
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