minor mobile improvement

This commit is contained in:
Robin Appelman 2025-10-06 21:54:21 +02:00
commit 20060fefe0
2 changed files with 27 additions and 1 deletions

View file

@ -1,6 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="data:;base64,=">
<link rel="stylesheet" href="style.css">
<title>PTouch</title>
@ -8,6 +9,12 @@
<body>
<table id="elements">
<thead>
<tr>
<td colspan="2"></td>
<td>Size</td>
<td>Position</td>
<td></td>
</tr>
</thead>
<tbody>

View file

@ -12,6 +12,25 @@
}
}
@media (max-width: 450px) {
#elements {
thead {
display: none !important;
}
td {
display: inline-block !important;
width: auto;
}
tbody td:first-child {
width: 95%;
input[type="text"] {
width: 100%;
}
}
}
}
body {
margin: 1em auto;
max-width: 800px;
@ -36,7 +55,7 @@ input {
padding: 0 5px;
}
.pos input {
.pos input, .size input {
width: 60px;
}