Skip to content

Commit 6278450

Browse files
committed
fix repl scrolling
1 parent 226fa5c commit 6278450

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"dependencies": {
88
"@vue/repl": "^0.4.8",
9-
"@vue/theme": "^0.1.27",
9+
"@vue/theme": "^0.1.28",
1010
"dynamics.js": "^1.1.5",
1111
"gsap": "^3.9.0",
1212
"vitepress": "^0.20.10",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/examples/ExampleRepl.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ function updateExample() {
4949
.vue-repl {
5050
max-width: 1105px;
5151
border-right: 1px solid var(--vt-c-divider-light);
52-
height: calc(100vh - var(--vt-nav-height));
52+
height: calc(100vh - var(--vt-nav-height) - var(--vt-banner-height, 0px));
5353
}
5454
5555
@media (max-width: 960px) {
5656
.vue-repl {
5757
border: none;
58-
height: calc(100vh - var(--vt-nav-height) - 48px);
58+
height: calc(
59+
100vh - var(--vt-nav-height) - var(--vt-banner-height, 0px) - 48px
60+
);
5961
}
6062
}
6163
</style>

src/tutorial/TutorialRepl.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,19 @@ a {
134134
}
135135
136136
.vue-repl {
137-
height: calc(100vh - var(--vt-nav-height) - var(--ins-height));
137+
height: calc(
138+
100vh - var(--vt-nav-height) - var(--ins-height) -
139+
var(--vt-banner-height, 0px)
140+
);
138141
}
139142
140143
@media (max-width: 960px) {
141144
.vue-repl {
142145
border: none;
143-
height: calc(100vh - var(--vt-nav-height) - var(--ins-height) - 48px);
146+
height: calc(
147+
100vh - var(--vt-nav-height) - var(--ins-height) -
148+
var(--vt-banner-height, 0px) - 48px
149+
);
144150
}
145151
}
146152

0 commit comments

Comments
 (0)