Skip to content

Commit 868b5ad

Browse files
docs: ✏️ 优化演示demo显示效果
Closes: #1269
1 parent e80b0df commit 868b5ad

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

docs/.vitepress/theme/components/VPIframe.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,22 +242,22 @@ watch(
242242
opacity: 0;
243243
}
244244
245-
@media screen and (min-width: 1280px) {
245+
@media screen and (min-width: 1440px) {
246246
.demo-model {
247-
width: 310px;
248-
height: calc(310px * 143.6 / 70.9 + 56px);
249-
right: 48px;
247+
width: 280px;
248+
height: calc(320px * 143.6 / 70.9);
249+
right: 12px;
250250
}
251251
252252
.collapsed {
253253
height: 48px;
254254
}
255255
}
256256
257-
@media screen and (min-width: 1440px) {
257+
@media screen and (min-width: 1600px) {
258258
.demo-model {
259-
width: 360px;
260-
height: calc(360px * 143.6 / 70.9 + 56px);
259+
width: 340px;
260+
height: calc(340px * 143.6 / 70.9);
261261
right: 64px;
262262
}
263263
@@ -266,7 +266,7 @@ watch(
266266
}
267267
}
268268
269-
@media (max-width: 1279px) {
269+
@media (max-width: 1439px) {
270270
.demo-model {
271271
display: none;
272272
}

0 commit comments

Comments
 (0)