From b80cc7c00b39e1bb8a3a945d86309443829efe3b Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Sat, 15 Jul 2023 14:18:58 -0400 Subject: [PATCH] Change interactive input components cols based on media queries --- .../PipelineConfigTabs/AprilTagTab.vue | 16 +++++---- .../dashboard/PipelineConfigTabs/ArucoTab.vue | 10 ++++-- .../PipelineConfigTabs/ContoursTab.vue | 34 ++++++++++++------- .../dashboard/PipelineConfigTabs/InputTab.vue | 23 +++++++------ .../PipelineConfigTabs/OutputTab.vue | 13 ++++--- .../dashboard/PipelineConfigTabs/PnPTab.vue | 8 +++-- .../PipelineConfigTabs/ThresholdTab.vue | 9 ++++- 7 files changed, 73 insertions(+), 40 deletions(-) diff --git a/photon-client/src/components/dashboard/PipelineConfigTabs/AprilTagTab.vue b/photon-client/src/components/dashboard/PipelineConfigTabs/AprilTagTab.vue index 8fd513f9aa..322d9e2d45 100644 --- a/photon-client/src/components/dashboard/PipelineConfigTabs/AprilTagTab.vue +++ b/photon-client/src/components/dashboard/PipelineConfigTabs/AprilTagTab.vue @@ -4,10 +4,14 @@ import { PipelineType } from "@/types/PipelineTypes"; import CvSelect from "@/components/common/cv-select.vue"; import CvSlider from "@/components/common/cv-slider.vue"; import CvSwitch from "@/components/common/cv-switch.vue"; +import {computed, getCurrentInstance} from "vue"; +import {useStateStore} from "@/stores/StateStore"; // TODO fix pipeline typing in order to fix this, the store settings call should be able to infer that only valid pipeline type settings are exposed based on pre-checks for the entire config section // Defer reference to store access method const currentPipelineSettings = useCameraSettingsStore().currentPipelineSettings; + +const interactiveCols = computed(() => (getCurrentInstance()?.proxy.$vuetify.breakpoint.mdAndDown || false) && (!useStateStore().sidebarFolded || useCameraSettingsStore().isDriverMode)) ? 9 : 8;