From 988b490d878aac9c58a8e043e8f2f4e3b792a880 Mon Sep 17 00:00:00 2001 From: aarizona Date: Fri, 27 Sep 2024 16:43:28 +0300 Subject: [PATCH] picker --- assets/main.scss | 4 ++-- components/calc/values.vue | 35 ++++++---------------------------- components/dropdown/picker.vue | 31 ++++++++++++++++++++++++------ 3 files changed, 33 insertions(+), 37 deletions(-) diff --git a/assets/main.scss b/assets/main.scss index 8872443..4486239 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -364,10 +364,10 @@ button { @apply flex items-center justify-between; >div { - @apply h-10 overflow-hidden rounded border-gray-300 shadow inline-block leading-none grow; + @apply h-10 overflow-hidden rounded border-gray-300 shadow flex leading-none grow justify-center items-center px-4; span { - @apply flex select-none w-full h-full justify-center items-center; + @apply grow text-center; } } diff --git a/components/calc/values.vue b/components/calc/values.vue index 771a0d9..0aff0a0 100644 --- a/components/calc/values.vue +++ b/components/calc/values.vue @@ -59,9 +59,6 @@ const form_refs = { total_length: ref(), } -const lamelle_text = ref(contrastColor(lamelle_color.value)) -const pillar_text = ref(contrastColor(pillar_color.value)) - const changeParametres = () => { // console.log('form', form_state.total_length * 1000, 'copy', copy_form_state.total_length * 1000) @@ -138,11 +135,9 @@ const changeParametres = () => { const setLamelleColor = (color: ralTypes) => { lamelle_color.value = color; - lamelle_text.value = contrastColor(color) ?? '#000' } const setPillarColor = (color: ralTypes) => { pillar_color.value = color - pillar_text.value = contrastColor(color) ?? '#000' } const setPillarPattern = (pattern: patternTypes) => { pillar_pattern.value = pattern @@ -187,44 +182,26 @@ const calc_table = computed(() => {
- - - {{ getColorNameFromRal(lamelle_color) }} - - + :goto_cam="new Vector3(0.75, 0.75, 0.75)" />
- - - {{ getColorNameFromRal(pillar_color) }} - - + :goto_cam="new Vector3(-1, -1, 1)" />
- - - {{ pillar_pattern }} - - + :goto_cam="new Vector3(1, 2, -1)"/>
diff --git a/components/dropdown/picker.vue b/components/dropdown/picker.vue index 66daa79..670eacf 100644 --- a/components/dropdown/picker.vue +++ b/components/dropdown/picker.vue @@ -1,5 +1,8 @@