Skip to content

Commit

Permalink
dont overflow screen in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
TeemuKoivisto committed Mar 29, 2024
1 parent 6aa98fd commit 258bc92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/client/src/components/play/ScoreOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<Icon icon={restore} width={16} />
</button>
<div class="options" class:hidden={$hidden}>
<div class="flex flex-col h-full">
<div class="range flex flex-col h-full">
<label class="font-bold" for="range_min">Range</label>
<div class="my-1 flex w-full">
<input
Expand Down Expand Up @@ -170,9 +170,6 @@
gap: 0.5rem;
grid-template-columns: 1fr;
grid-template-rows: auto;
@media (width <= 475px) {
grid-template-columns: 1fr 1fr;
}
&.hidden {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/score/Score.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
function init() {
renderer = new Renderer(outputEl, Renderer.Backends.SVG)
renderer.resize(732, 360)
renderer.resize(Math.min(window.innerWidth - 16, 732), 360)
ctx = renderer.getContext()
ctx.scale(2.0, 2.0)
// console.log('ctx', ctx)
Expand Down

0 comments on commit 258bc92

Please sign in to comment.