Skip to content

Commit

Permalink
Adjust mobile UI/UX
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-A-Normal-Robot committed Jan 30, 2024
1 parent 236bb80 commit 63a1ba7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 1 addition & 3 deletions js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ import {getLanguageEntry} from "/js/lang.js";
let t = performance.now() / 12 % 360;
mapContext.fillStyle = `hsla(${t}, 100%, 50%, 0.36)`;
}
mapContext.lineWidth = 4 * camZoom;
mapContext.lineWidth = 8 * camZoom / (window.devicePixelRatio || 1);
switch(shape) {
case 1:
mapContext.fillRect(...getMapModeCoords(x, y, size * 2));
Expand Down Expand Up @@ -447,8 +447,6 @@ import {getLanguageEntry} from "/js/lang.js";
if(event.touches.length === 1) {
touchPrevX = event.touches[0].clientX;
touchPrevY = event.touches[0].clientY;
touchStartCamX = camX;
touchStartCamY = camY;
} else if(event.touches.length === 2) {
touchStartDist = Math.hypot(
event.touches[0].clientX - event.touches[1].clientX,
Expand Down
13 changes: 13 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,23 @@ nav.navbar{
margin: 20px;
border: 1px solid white;
}
@media (max-width: 700px) {
.inner{
margin: 0;
border: 0 none transparent;
border-bottom: 1px solid white;
}
}

section.content{
padding: 0 50px 50px;
}
@media (max-width: 700px) {
section.content{
padding: 0 10px 10px;
}
}

p{
text-wrap: wrap;
}
Expand Down

0 comments on commit 63a1ba7

Please sign in to comment.