Skip to content

Commit

Permalink
fix: improve input width on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousm4x committed Oct 1, 2023
1 parent d44bea5 commit 6b91d15
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/src/lib/components/DeviceForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
{/each}
</div>
<button
class="btn btn-wide btn-primary mt-4"
class="btn max-w-xs btn-primary mt-4"
on:click={() => createEmptyPort()}
type="button">{$LL.device.ports_add_new()}</button
>
Expand Down Expand Up @@ -285,7 +285,7 @@
{@html $LL.settings.ping_interval_desc2()}
</p>
<div class="form-control flex flex-row flex-wrap gap-4">
<div>
<div class="w-full max-w-xs">
<label class="label" for="wake-cron">
<span class="label-text"
>{$LL.device.wake_cron()}
Expand All @@ -298,7 +298,7 @@
id="wake-cron"
type="text"
placeholder="M H DoM M DoW"
class="input w-80"
class="input w-full max-w-xs"
bind:value={device.wake_cron}
disabled={!device.wake_cron_enabled}
required={device.wake_cron_enabled}
Expand Down Expand Up @@ -362,7 +362,7 @@
type="number"
min="1"
max="65535"
class="input w-80"
class="input"
bind:value={device.sol_port}
disabled={!device.sol_enabled}
required={device.sol_enabled}
Expand Down Expand Up @@ -397,7 +397,7 @@
id="sol-user"
type="text"
placeholder={$LL.device.sol_user()}
class="input w-80"
class="input"
bind:value={device.sol_user}
disabled={!device.sol_auth}
required={device.sol_auth}
Expand All @@ -417,7 +417,7 @@
id="sol-password"
type="password"
placeholder={$LL.device.sol_password()}
class="input w-80"
class="input"
bind:value={device.sol_password}
disabled={!device.sol_auth}
required={device.sol_auth}
Expand Down Expand Up @@ -464,7 +464,7 @@
{$LL.device.shutdown_cron_desc()}
</p>
<div class="form-control flex flex-row flex-wrap gap-4">
<div>
<div class="w-full max-w-xs">
<label class="label" for="shutdown-cron">
<span class="label-text"
>{$LL.device.shutdown_cron()}
Expand All @@ -477,7 +477,7 @@
id="shutdown-cron"
type="text"
placeholder="M H DoM M DoW"
class="input w-80"
class="input w-full max-w-xs"
bind:value={device.shutdown_cron}
disabled={!device.shutdown_cron_enabled}
required={device.shutdown_cron_enabled}
Expand Down

0 comments on commit 6b91d15

Please sign in to comment.