Skip to content

Commit

Permalink
fix mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
r58Playz committed Feb 1, 2025
1 parent 011ab4b commit a7f563b
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions client-showcase/src/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,24 +328,38 @@ export const Demo: Component<{}, {
req: EpoxyRequest,
}> = function() {
this.css = `
display: grid;
grid-template-areas:
"a b"
"c c";
grid-auto-rows: 24rem;
grid-auto-columns: 1fr 1fr;
gap: 4px;
.inner {
display: grid;
grid-template-areas:
"a b"
"c c";
grid-auto-rows: 24rem;
grid-auto-columns: 1fr 1fr;
gap: 4px;
}
div[area="a"] { grid-area: a; }
div[area="b"] { grid-area: b; }
div[area="c"] { grid-area: c; }
@media (max-width: 850px) {
.inner {
display: flex;
flex-direction: column;
}
.inner * {
flex: 0 0 24rem;
}
}
`;

return (
<div>
<RequestBuilder bind:req={use(this.req)} area="a" />
<RequestSender req={use(this.req)} area="b" />
<WebsocketLogger area="c" />
<div class="inner">
<RequestBuilder bind:req={use(this.req)} area="a" />
<RequestSender req={use(this.req)} area="b" />
<WebsocketLogger area="c" />
</div>
</div>
)
}

0 comments on commit a7f563b

Please sign in to comment.