Skip to content

Add expandable image in markdown preview#1081

Closed
Komediruzecki wants to merge 3 commits intoBoostIO:masterfrom
Komediruzecki:feature/image-actions-md-preview
Closed

Add expandable image in markdown preview#1081
Komediruzecki wants to merge 3 commits intoBoostIO:masterfrom
Komediruzecki:feature/image-actions-md-preview

Conversation

@Komediruzecki
Copy link
Copy Markdown
Contributor

It is also a feature in WebApp but we can remove it from there if needed only in Desktop App.

Usage instructions:

Click on preview image to enlarge it
Click on enlarge button which activates on image hover to enlarge it
Click Escape once in enlarged view to discard it (close)
Click on Close button next to image in top right corner to close the view

Short preview how it works:
https://user-images.githubusercontent.com/18196945/128878278-8c6b770b-e404-486d-a443-b81bb9558bea.mp4

@Komediruzecki Komediruzecki requested a review from Rokt33r August 10, 2021 13:47
Comment thread src/cloud/components/atoms/MarkdownView/index.tsx
Add display block styles to not mess with its positions
Add close enlarged image on clicking dimmed background
@Komediruzecki Komediruzecki force-pushed the feature/image-actions-md-preview branch from a20330b to 18d7702 Compare August 13, 2021 07:40
Add full size to modal dialog
Update Enlarge image to use modal dialog instead of its own
Set new CSS needed for image to show in full
@Davy-c Davy-c mentioned this pull request Aug 25, 2021
@Davy-c
Copy link
Copy Markdown
Contributor

Davy-c commented Aug 25, 2021

#1110

@Davy-c Davy-c closed this Aug 25, 2021
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.

3 participants