From 2f47086a575177d958f2ae123b354a9eafd33c9f Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Wed, 25 Sep 2024 12:41:05 +0300 Subject: [PATCH] block position --- assets/main.scss | 19 ++-- components/calc/models.vue | 40 ++++---- components/calc/values.vue | 181 +++++++++++++++++---------------- components/dropdown/picker.vue | 7 +- components/model/camera.vue | 12 ++- composables/useCalc.ts | 1 + pages/calc.vue | 14 ++- 7 files changed, 143 insertions(+), 131 deletions(-) diff --git a/assets/main.scss b/assets/main.scss index e376409..ebd55f0 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -178,18 +178,10 @@ a[href^="#"] { } &_calc { - @apply py-0 relative; + // @apply; - >.container:first-child { - @apply relative min-h-[650px] justify-between; - - >* { - @apply z-10 - } - } - - &-canvas { - @apply absolute top-0 bottom-0; + .container { + @apply gap-4; } } @@ -366,13 +358,14 @@ button { &-changer { @apply flex gap-0; } - + &-list { @apply flex gap-4 w-full; } - + &-item { @apply w-10 h-10; + &--empty { @apply block bg-slate-300; } diff --git a/components/calc/models.vue b/components/calc/models.vue index 0013532..6b5e28c 100644 --- a/components/calc/models.vue +++ b/components/calc/models.vue @@ -34,27 +34,25 @@ watch(fence_section, () => { }) \ No newline at end of file diff --git a/components/calc/values.vue b/components/calc/values.vue index d9a8f6b..c0c36c7 100644 --- a/components/calc/values.vue +++ b/components/calc/values.vue @@ -18,6 +18,7 @@ const extra_section = use_extra_section() const total_length = use_total_length() const min_length = use_min_length() const goto_cam = use_goto_camera() +const goto_target = use_goto_target() const open_calc = use_open_calc() if (!pillar_color.value) { @@ -186,108 +187,114 @@ const calc_table = computed(() => { watch(open_calc, () => { if (Object.keys(open_calc.value).length == 0) { - goto_cam.value = new Vector3(1, 1, 1) + goto_cam.value = new Vector3(0, 0, 0) + goto_target.value = new Vector3(0, 0, 0) } })