Browse Source

* Even more responsive!

master
vvandenb 2 years ago
parent
commit
7989643531
  1. 2
      front/volume/src/components/NavBar.svelte
  2. 3
      front/volume/src/components/Pong/GameComponent.svelte

2
front/volume/src/components/NavBar.svelte

@ -82,6 +82,7 @@
align-items: center; align-items: center;
background-color: #f5f5f5; background-color: #f5f5f5;
padding: 1rem; padding: 1rem;
max-height: 5vh;
} }
.navigation-bar ul { .navigation-bar ul {
@ -118,6 +119,7 @@
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
padding: 0; padding: 0;
max-height: none;
} }
.navigation-bar ul { .navigation-bar ul {

3
front/volume/src/components/Pong/GameComponent.svelte

@ -49,8 +49,8 @@
} }
.renderCanvas { .renderCanvas {
max-width: 60vw;
width: 100%; width: 100%;
max-height: 70vh;
height: auto; height: auto;
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
@ -58,5 +58,6 @@
margin-right: auto; margin-right: auto;
display: block; display: block;
touch-action: none; touch-action: none;
object-fit: contain;
} }
</style> </style>

Loading…
Cancel
Save