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

Fix image zoom in linkcard #41

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Fix image zoom in linkcard #41

merged 1 commit into from
Sep 18, 2024

Conversation

Loping151
Copy link
Collaborator

@Loping151 Loping151 commented Sep 18, 2024

Screencast.from.2024-09-18.21-18-03.webm

Ubuntu录屏不带指针所以可能不太清楚。。事实上发生了:

点击友链(点击位置在图片上),然后回到自己的站点,友链的头像会放大。这是 de3d071 引入的新特性。

这是因为 firend.mdx 使用 BaseCard 作为版面,mediumZoom 通过 main card 样式转递给了 link-card 中的图片。我认为这是不符合预期的。所以增加了排除:

mediumZoom(".main-card img:not(.link-card img)

上一个改错了。。没动脑子属于是。

Copy link

vercel bot commented Sep 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frosti ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2024 1:50pm

@EveSunMaple
Copy link
Owner

thanks!

@EveSunMaple EveSunMaple merged commit 993227b into EveSunMaple:main Sep 18, 2024
1 check passed
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