Skip to content

Add popup preview#48

Open
auspham wants to merge 2 commits intoppeetteerrs:mainfrom
auspham:preview-popup
Open

Add popup preview#48
auspham wants to merge 2 commits intoppeetteerrs:mainfrom
auspham:preview-popup

Conversation

@auspham
Copy link

@auspham auspham commented Oct 3, 2022

Add multi-layer preview popup as suggested from #42 suggested by @Yilunma1

The behavior is similar to obsidian publish (can view a preview within a preview)

Supports both light and dark theme. It only works on /docs/ link, used a hashmap to prevent continuously fetching.

image

Update: added preview based on block id
image

live demo: https://swe.auspham.dev/docs/aws-certified-developer-dva-c01/aws-security-and-encryption/aws-kms-limitations/

Please lemme know if it looks good or anything that needs to be changed

@auspham auspham changed the title feat: preview popup Add popup preview Oct 3, 2022
@DoNotResuscitate
Copy link

@rockmanvnx6 how do you have your subsections properly nested? For example when minimizing the AWS Certified Developer section all of the sub-folders get hidden. Peters example sites doesn't do that.

@DoNotResuscitate
Copy link

I answered my own question - I just checked out out your fork :P

@Yarden-zamir
Copy link

Can this be done the same for the notes in the sidebar?

@auspham
Copy link
Author

auspham commented Nov 26, 2022

@Yarden-zmr Should be able to without much changes. I'm not planning to add it in however since it sounds to me this might be dependent on one's preferences. Please feel free to modify the code for your usage.

@Yilunma1
Copy link

Hello ! thanks for the update and nice work ! Can't wait to get it pulled !

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.

4 participants