From e40c8fbca08e8397e00e35f72809ac69d752ad57 Mon Sep 17 00:00:00 2001 From: Devon Doyle Date: Wed, 8 Jan 2025 16:46:31 -0500 Subject: [PATCH] Calibration card and PV input styling (#1695) Images are before and after comparison. Does the following: - Fixes several styling issues with pv-* input elements, including top padding, vertical alignment, and allocated input width ![image](https://github.com/user-attachments/assets/70d37e65-e0cd-4c71-8ea1-941ec2175850) ![image](https://github.com/user-attachments/assets/031d008d-3cce-4ed2-bc88-5fbecf20c94f) - Conforms the calibration details modal to overall styling and spacing standards ![image](https://github.com/user-attachments/assets/18281551-f924-4e12-9ad4-d2ec470dbc70) ![image](https://github.com/user-attachments/assets/db772325-7650-467d-8521-252c7d38601f) (left the blank table there on empty calibrations to give the user a sense of what they might see if they don't have any) --- .../cameras/CameraCalibrationCard.vue | 6 +- .../cameras/CameraCalibrationInfoCard.vue | 50 ++++---- .../src/components/cameras/CamerasView.vue | 4 + .../src/components/common/pv-input.vue | 5 + .../src/components/common/pv-radio.vue | 6 + .../src/components/common/pv-select.vue | 3 +- .../src/components/common/pv-slider.vue | 4 +- .../src/components/common/pv-switch.vue | 2 +- .../src/components/dashboard/CamerasCard.vue | 3 + .../components/dashboard/tabs/ContoursTab.vue | 21 +-- .../components/dashboard/tabs/InputTab.vue | 13 +- .../components/dashboard/tabs/OutputTab.vue | 121 ++++++++++-------- .../dashboard/tabs/ThresholdTab.vue | 6 +- .../components/settings/NetworkingCard.vue | 6 +- 14 files changed, 142 insertions(+), 108 deletions(-) diff --git a/photon-client/src/components/cameras/CameraCalibrationCard.vue b/photon-client/src/components/cameras/CameraCalibrationCard.vue index d05fb64fc..fd5a90c41 100644 --- a/photon-client/src/components/cameras/CameraCalibrationCard.vue +++ b/photon-client/src/components/cameras/CameraCalibrationCard.vue @@ -218,7 +218,7 @@ const setSelectedVideoFormat = (format: VideoFormat) => { Camera Calibration - Current Calibration + Current Calibration @@ -252,7 +252,9 @@ const setSelectedVideoFormat = (format: VideoFormat) => { - Configure New Calibration + Configure New Calibration - - - The selected video format doesn't have any additional information as it has yet to be calibrated. - + @@ -275,7 +274,6 @@ const calibrationImageURL = (index: number) => .snapshot-preview { max-width: 55%; } - @media only screen and (max-width: 512px) { .snapshot-preview { max-width: 100%; diff --git a/photon-client/src/components/cameras/CamerasView.vue b/photon-client/src/components/cameras/CamerasView.vue index 9c545edce..de0d48d38 100644 --- a/photon-client/src/components/cameras/CamerasView.vue +++ b/photon-client/src/components/cameras/CamerasView.vue @@ -134,6 +134,10 @@ th { text-align: center; } +.v-input--switch { + margin-top: 0; +} + .stream-container { display: flex; justify-content: center; diff --git a/photon-client/src/components/common/pv-input.vue b/photon-client/src/components/common/pv-input.vue index 5b916210e..cce6c8972 100644 --- a/photon-client/src/components/common/pv-input.vue +++ b/photon-client/src/components/common/pv-input.vue @@ -69,3 +69,8 @@ const handleKeydown = ({ key }) => { + diff --git a/photon-client/src/components/common/pv-radio.vue b/photon-client/src/components/common/pv-radio.vue index b1ce9d28e..aafd4f50d 100644 --- a/photon-client/src/components/common/pv-radio.vue +++ b/photon-client/src/components/common/pv-radio.vue @@ -47,3 +47,9 @@ const localValue = computed({ + diff --git a/photon-client/src/components/common/pv-select.vue b/photon-client/src/components/common/pv-select.vue index 7aba8d778..56ee56644 100644 --- a/photon-client/src/components/common/pv-select.vue +++ b/photon-client/src/components/common/pv-select.vue @@ -69,8 +69,9 @@ const items = computed(() => { - diff --git a/photon-client/src/components/common/pv-slider.vue b/photon-client/src/components/common/pv-slider.vue index a87942b0e..b80bcdcec 100644 --- a/photon-client/src/components/common/pv-slider.vue +++ b/photon-client/src/components/common/pv-slider.vue @@ -46,10 +46,10 @@ const localValue = computed({ -