mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
优化照片集缩放
This commit is contained in:
@@ -33,6 +33,7 @@ const NotionPage = ({ post }) => {
|
||||
const zoom = isBrowser() && mediumZoom({
|
||||
container: '.notion-viewport',
|
||||
background: 'rgba(0, 0, 0, 0.2)',
|
||||
scrollOffset: 200,
|
||||
margin: getMediumZoomMargin()
|
||||
})
|
||||
|
||||
|
||||
@@ -207,6 +207,20 @@
|
||||
|
||||
.medium-zoom-image--opened {
|
||||
z-index: 301;
|
||||
/* width: auto !important; */
|
||||
}
|
||||
|
||||
@media (max-width: 768px){
|
||||
.medium-zoom-image--opened {
|
||||
object-fit: fill !important;
|
||||
height: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px){
|
||||
.medium-zoom-image--opened {
|
||||
object-fit: scale-down !important;
|
||||
}
|
||||
}
|
||||
|
||||
.notion-frame {
|
||||
|
||||
Reference in New Issue
Block a user