any data after

This commit is contained in:
Dmitry Borisenko
2021-10-26 05:38:47 +07:00
parent b1881b0d2d
commit c494f7b447
4 changed files with 15 additions and 4 deletions

View File

@@ -139,6 +139,15 @@
topic: "/prefix/00000-00003/tmp10", topic: "/prefix/00000-00003/tmp10",
ws: 1, ws: 1,
}, },
{
widget: "anydata",
status: "opened",
page: "Any data",
order: "3",
descr: "Status",
topic: "/prefix/00000-00003/tmp10",
ws: 1,
},
]; ];
//находит в массиве с виджетами wigets все уникальные названия страниц и сортирует названия по алфавиту //находит в массиве с виджетами wigets все уникальные названия страниц и сортирует названия по алфавиту
@@ -295,11 +304,11 @@
@apply w-full p-2 sm:p-2 md:p-2 lg:p-2 xl:px-8 xl:py-4 2xl:px-8 2xl:py-4 bg-white rounded-lg shadow-md lg:shadow-lg; @apply w-full p-2 sm:p-2 md:p-2 lg:p-2 xl:px-8 xl:py-4 2xl:px-8 2xl:py-4 bg-white rounded-lg shadow-md lg:shadow-lg;
} }
/* 2. style for card header */ /* 2. style for card header */
.card-header-gray { .card-header {
@apply text-center text-lg text-gray-500 font-bold pb-6; @apply text-center text-lg text-gray-500 font-bold pb-6;
} }
/* 3. card items positioning*/ /* 3. card items positioning*/
.card-items-psn { .card-items-psn-ajustable {
@apply flex flex-col sm:flex-row lg:flex-row xl:flex-row 2xl:flex-row mb-6 h-8 items-center; @apply flex flex-col sm:flex-row lg:flex-row xl:flex-row 2xl:flex-row mb-6 h-8 items-center;
} }
.card-items-psn-inline { .card-items-psn-inline {

View File

@@ -14,5 +14,7 @@
<div class="widget-width-inline"> <div class="widget-width-inline">
<!-- svelte-ignore a11y-label-has-associated-control --> <!-- svelte-ignore a11y-label-has-associated-control -->
<label class="widget-anydata-style">{!widget.status ? "" : widget.status}</label> <label class="widget-anydata-style">{!widget.status ? "" : widget.status}</label>
<!-- svelte-ignore a11y-label-has-associated-control -->
<label class="widget-anydata-style">{!widget.after ? "" : widget.after}</label>
</div> </div>
</div> </div>

View File

@@ -3,6 +3,6 @@
</script> </script>
<div class="card"> <div class="card">
<h1 class="card-header-gray">{title}</h1> <h1 class="card-header">{title}</h1>
<slot /> <slot />
</div> </div>

View File

@@ -6,7 +6,7 @@
export let widget; export let widget;
</script> </script>
<div class="card-items-psn"> <div class="card-items-psn-ajustable">
<div class="widget-descr-width-ajustable"> <div class="widget-descr-width-ajustable">
<!-- svelte-ignore a11y-label-has-associated-control --> <!-- svelte-ignore a11y-label-has-associated-control -->
<label class="widget-descr-style">{!widget.descr ? "" : widget.descr}</label> <label class="widget-descr-style">{!widget.descr ? "" : widget.descr}</label>