From 5b8c9f26ca5373e07e617d08495cd9ea6356b9d2 Mon Sep 17 00:00:00 2001
From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com>
Date: Fri, 17 Sep 2021 03:35:49 +0800
Subject: [PATCH] changes
---
src/App.svelte | 78 ++++++----------------------------------------
src/Myinput.svelte | 20 +++++-------
2 files changed, 16 insertions(+), 82 deletions(-)
diff --git a/src/App.svelte b/src/App.svelte
index 8ea0fd2..9fa1161 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -108,9 +108,6 @@
-
-
-
@@ -120,7 +117,7 @@
{#each wigets as widget, i}
{#if widget.widget === "input"}
-
+
{/if}
{/each}
@@ -150,63 +147,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -223,9 +164,8 @@
.block-psn-center {
@apply grid place-items-center mx-2 sm:my-auto;
}
-
.card {
- @apply w-11/12 sm:w-8/12 md:w-6/12 lg:w-5/12 2xl:w-4/12 p-2 sm:px-8 sm:py-4 my-2 bg-white rounded-lg shadow-md lg:shadow-lg;
+ @apply w-11/12 sm:w-8/12 md:w-6/12 lg:w-5/12 2xl:w-4/12 p-2 sm:p-2 md:p-2 lg:p-2 xl:px-8 xl:py-4 2xl:px-8 2xl:py-4 my-2 bg-white rounded-lg shadow-md lg:shadow-lg;
}
.card-title-gray {
@apply text-center text-lg text-gray-500 font-bold pb-6;
@@ -237,7 +177,7 @@
@apply content-center pr-4 block text-gray-500 font-bold md:text-left;
}
.widget-input-indigo {
- @apply content-center text-right pr-4 py-1 bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-indigo-500;
+ @apply content-center pr-4 py-1 bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-indigo-500;
}
.widget-after {
@apply pr-4 block text-gray-500 font-bold md:text-right;
@@ -349,18 +289,18 @@
}
input[type="date"]::-webkit-calendar-picker-indicator {
- margin-left: 10px;
- margin-right: -4px;
+ margin-left: 5px;
+ margin-right: -8px;
}
input[type="time"]::-webkit-calendar-picker-indicator {
- margin-left: 10px;
- margin-right: -4px;
+ margin-left: 5px;
+ margin-right: -8px;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
- margin-left: 15px;
- margin-right: 2px;
+ margin-left: 7px;
+ margin-right: -6px;
width: 30px;
height: 30px;
opacity: 1;
diff --git a/src/Myinput.svelte b/src/Myinput.svelte
index 4281b58..2852eb3 100644
--- a/src/Myinput.svelte
+++ b/src/Myinput.svelte
@@ -8,35 +8,29 @@
export let topic;
export let ws;
export let type;
- export let after;
+ //style="min-width:50%; max-width:100%; width:{value.length * 10}px" on:change={(WSpush(ws, topic, value), console.log(value.length))}
-
+
-