Basic usability fixed for mobile devices

This commit is contained in:
aymm 2021-04-18 08:47:43 +02:00
parent 686ec6b141
commit 2c735fef69
Signed by: phlaym
GPG Key ID: A06651BAB6777237
2 changed files with 6 additions and 4 deletions

View File

@ -67,6 +67,7 @@ function get_page_header(
. $favicons . $favicons
. '<title>'.$title.'</title><link rel="stylesheet" href="styles/style.css">' . '<title>'.$title.'</title><link rel="stylesheet" href="styles/style.css">'
. $script_str . $script_str
. '<meta name="viewport" content="width=device-width,initial-scale=1">'
. '</head><body><header>' . '</head><body><header>'
. $home_link . $home_link
. $new_poll_link . $new_poll_link

View File

@ -63,12 +63,13 @@ if (!empty($_POST['submit'])) {
<label for="public">Public</label> <label for="public">Public</label>
<input type="checkbox" name="public" id="public" /> <input type="checkbox" name="public" id="public" />
<label for="max_options">Max Options</label> <label for="max_options">Max Options</label>
<input type="number" name="max_options" id="max_options" min="1" max="10" value="1" required/> <input type="number" name="max_options" id="max_options" min="1" max="10" value="1" inputmode="numeric" required/>
<label for="duration">Duration</label> <label for="duration">Duration</label>
<div id="duration"> <div id="duration">
<input type="number" name="duration_days" value="1" min="0" required/><span>day(s)</span> <input type="number" name="duration_days" value="1" min="0" inputmode="numeric" required/><span>day(s)</span>
<input type="number" name="duration_hours" value="0" min="0" required/><span>hour(s)</span> <input type="number" name="duration_hours" value="0" min="0" inputmode="numeric" required/><span>hour(s)</span>
<input type="number" name="duration_minutes" value="0" min="0" required/><span>minute(s)</span><br> <input type="number" name="duration_minutes" value="0" min="0" inputmode="numeric" required/><span>minute(s)</span>
<br>
<span id="openUntil"></span> <span id="openUntil"></span>
</div> </div>
<span class="error"></span> <span class="error"></span>