diff --git a/web/src/pages/HelpPage.vue b/web/src/pages/HelpPage.vue index f7b3e38..d6dce32 100644 --- a/web/src/pages/HelpPage.vue +++ b/web/src/pages/HelpPage.vue @@ -1,7 +1,29 @@ @@ -282,7 +309,7 @@ code { font-size: 13px; } -/* 截图:按原尺寸显示,比正文宽时缩小;点击看原图 */ +/* 截图:按原尺寸显示,比正文宽时缩小;点击在页面上放大 */ .shot { margin: 12px 0 16px; } @@ -296,6 +323,35 @@ code { box-shadow: 0 1px 4px rgb(0 0 0 / 0.08); } +.shot a { + cursor: zoom-in; +} + +.zoom { + position: fixed; + inset: 0; + z-index: 100; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 8px; + padding: 16px; + background: rgb(0 0 0 / 0.88); + cursor: zoom-out; +} + +.zoom img { + max-width: 100%; + border-radius: 4px; + background: #fff; +} + +.zoom-caption { + color: #fff; + font-size: 14px; +} + .shot figcaption { margin-top: 4px; font-size: 13px;