Skip to content

Commit

Permalink
fix(repl): mobile panel selection
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Jan 16, 2024
1 parent 729aa72 commit 1f6aba3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/docs/src/routes/examples/[...id]/examples.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
grid-template-rows: 100%;
grid-template-columns: 100vw 100vw;
grid-template-areas: 'example-content-panel example-repl-panel';
height: calc(100% - var(--header-height));
height: 100%;
height: calc(100% - var(--header-height) - var(--panel-toggle-height));
transform: translate3d(0, 0, 0);
transition: transform 500ms;
height: 100%;
}

.examples-panel-input {
Expand All @@ -35,15 +35,14 @@
border-width: 1px;
border-top-style: solid;
border-top-left-radius: 5px;
overflow: hidden;
}

.examples .repl {
display: grid;
grid-template-rows: auto;
grid-template-columns: 100vw 100vw 100vw;
grid-template-areas: 'repl-input-panel repl-output-panel repl-detail-panel';
height: calc(100vh - var(--header-height));
height: 100%;
}

@media (min-width: 768px) {
Expand Down
5 changes: 5 additions & 0 deletions packages/docs/src/routes/playground/playground.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.playground {
width: 100%;
height: cal(100vh - var(--header-height));
height: cal(100dvh - var(--header-height));

--playground-header-height: 0px;
}
Expand All @@ -14,6 +15,7 @@
'repl-input-panel repl-detail-panel';
top: calc(var(--header-height) + var(--playground-header-height));
height: calc(100vh - var(--header-height) - var(--panel-toggle-height));
height: calc(100dvh - var(--header-height) - var(--panel-toggle-height));
}

.playground .repl-col-resize-bar {
Expand Down Expand Up @@ -56,6 +58,9 @@
}

@media (max-width: 768px) {
body {
overflow-x: hidden;
}
.playground .repl {
width: 300vw;
grid-template-rows: 100%;
Expand Down

0 comments on commit 1f6aba3

Please sign in to comment.