This commit is contained in:
Dmitry Borisenko
2021-09-17 05:27:24 +08:00
parent 5b8c9f26ca
commit 95cb6c3167
2 changed files with 5 additions and 5 deletions

View File

@@ -171,7 +171,7 @@
@apply text-center text-lg text-gray-500 font-bold pb-6;
}
.card-items {
@apply md:items-center md:flex mb-6;
@apply md:items-center lg:items-end 2xl:items-end md:flex mb-6;
}
.widget-descr-gray-left {
@apply content-center pr-4 block text-gray-500 font-bold md:text-left;

View File

@@ -13,14 +13,14 @@
<div class="container">
<div class="card-items">
<div class="w-full md:w-2/3 lg:w-2/3 2xl:w-2/3">
<div class="md:w-2/3 lg:w-2/3 2xl:w-2/3">
<!-- svelte-ignore a11y-label-has-associated-control -->
<label class="widget-descr-gray-left">{!descr ? "" : descr}</label>
</div>
<div class="w-full md:w-1/3 lg:w-1/3 2xl:w-1/3">
<div class="md:w-1/3 lg:w-1/3 2xl:w-1/3">
<!-- on:change={WSpush(ws, topic, value)} -->
{#if type == "number"}
<input class="widget-input-indigo text-right md:w-24 lg:w-24 2xl:w-24" step="0.1" on:change={WSpush(ws, topic, value)} bind:value type="number" />
<input class="widget-input-indigo text-right" step="0.1" on:change={WSpush(ws, topic, value)} bind:value type="number" />
{/if}
{#if type == "text"}
<input class="widget-input-indigo text-right" on:change={WSpush(ws, topic, value)} bind:value type="text" />
@@ -29,7 +29,7 @@
<input class="widget-input-indigo text-right" on:change={WSpush(ws, topic, value)} bind:value type="date" />
{/if}
{#if type == "time"}
<input class="widget-input-indigo text-right md:w-24 lg:w-24 2xl:w-24" on:change={WSpush(ws, topic, value)} bind:value type="time" />
<input class="widget-input-indigo text-right" on:change={WSpush(ws, topic, value)} bind:value type="time" />
{/if}
</div>
</div>