diff --git a/assets/main.scss b/assets/main.scss
index deb8dd6..8f101c0 100644
--- a/assets/main.scss
+++ b/assets/main.scss
@@ -182,6 +182,10 @@ a[href^="#"] {
.container {
@apply gap-4 items-stretch;
+
+ >* {
+ @apply relative;
+ }
}
}
@@ -306,6 +310,10 @@ button {
&-row {
@apply flex flex-row flex-wrap gap-2;
+
+ &_picker {
+ @apply grid grid-cols-2 justify-center items-center;
+ }
}
&-item {
@@ -316,7 +324,7 @@ button {
}
.icon {
- @apply hover:text-primary cursor-pointer transition-colors text-2xl;
+ @apply hover:text-primary cursor-pointer transition-colors text-xl;
&.disabled {
@apply text-neutral pointer-events-none cursor-not-allowed;
@@ -352,6 +360,7 @@ button {
input {
@apply flex-grow;
}
+
span {
@apply min-w-16;
}
@@ -383,7 +392,7 @@ button {
@apply flex items-center justify-between;
>div {
- @apply h-10 overflow-hidden rounded border-gray-300 shadow flex leading-none grow justify-center items-center px-4;
+ @apply h-10 overflow-hidden rounded border-gray-300 shadow flex leading-none grow justify-center items-center px-2;
span {
@apply grow text-left;
@@ -393,7 +402,7 @@ button {
}
&-button {
- @apply min-w-10 shrink-0 h-full;
+ @apply min-w-6 shrink-0 h-full;
}
&-selected {
@@ -401,7 +410,11 @@ button {
}
&-changer {
- @apply flex gap-3 mt-4 max-h-36 overflow-auto;
+ @apply gap-3 mt-4 max-h-36 overflow-auto order-10 hidden;
+
+ &_open {
+ @apply flex flex-wrap col-span-2;
+ }
}
&-list {
@@ -445,9 +458,11 @@ button {
}
}
}
-.calc{
+
+.calc {
@apply max-h-[800px] relative h-full;
}
+
.calc_table {
@apply flex flex-col gap-2 self-end;
diff --git a/components/calc/values.vue b/components/calc/values.vue
index 2c0e39d..6fe5f6c 100644
--- a/components/calc/values.vue
+++ b/components/calc/values.vue
@@ -169,12 +169,12 @@ const calc_table = computed(() => {
},
{
name:
- `Ламели, RAL ${lamelle_color.value}, ${getColorNameFromRal(lamelle_color.value)?.toLowerCase()}`,
+ `Ламели`,
value: section_count.value * lamelles_count.value,
extra: 1 * lamelles_count.value
},
{
- name: `Столбы, RAL ${pillar_color.value}, ${getColorNameFromRal(pillar_color.value)?.toLowerCase()}`,
+ name: `Столбы`,
value: !form_state.remove_pillar ? section_count.value + ~~(!!form_state.extra_section) + 1 : `—`,
extra: `—`
},
@@ -183,40 +183,29 @@ const calc_table = computed(() => {