From a5291031aa02a11ed0bb2b1413a7a57192ed0c5b Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Wed, 11 Oct 2023 21:20:49 -0400 Subject: [PATCH] pdf display --- benchtop-fe/src/App.vue | 1 - .../NewCalibrationDeviceForm.vue | 31 ++----- .../src/components/EnvironmentForm.vue | 2 +- benchtop-fe/src/components/PDF/PDF.vue | 8 +- benchtop-fe/src/components/Sheet.vue | 88 ++++++++++--------- benchtop-fe/src/components/UploadForm.vue | 11 +-- benchtop-fe/src/style.css | 73 +++++++-------- 7 files changed, 99 insertions(+), 115 deletions(-) diff --git a/benchtop-fe/src/App.vue b/benchtop-fe/src/App.vue index a4e4db8..1c06106 100644 --- a/benchtop-fe/src/App.vue +++ b/benchtop-fe/src/App.vue @@ -1,5 +1,4 @@ diff --git a/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue b/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue index 4da444f..2b3bb21 100644 --- a/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue +++ b/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue @@ -2,48 +2,27 @@
Calibration Devices

Primary Device

- -

Calibration Date

- +
-

Secondary Device

- +

Calibration Date

- +
diff --git a/benchtop-fe/src/components/EnvironmentForm.vue b/benchtop-fe/src/components/EnvironmentForm.vue index 8d3de13..1339682 100644 --- a/benchtop-fe/src/components/EnvironmentForm.vue +++ b/benchtop-fe/src/components/EnvironmentForm.vue @@ -10,7 +10,7 @@ - Barometric Pressure (psi) + Pressure (psi) diff --git a/benchtop-fe/src/components/PDF/PDF.vue b/benchtop-fe/src/components/PDF/PDF.vue index e372c3a..957ee7e 100644 --- a/benchtop-fe/src/components/PDF/PDF.vue +++ b/benchtop-fe/src/components/PDF/PDF.vue @@ -4,7 +4,9 @@ -
+
+
+
@@ -84,7 +86,7 @@
Humidity (%RH):{{ props.environment?.humidity }}} + >{{ props.environment?.humidity }}
@@ -308,7 +310,7 @@ import { ref, defineProps } from "vue"; import html2pdf from "html2pdf.js"; import BenchTopLogoUrl from "../../assets/BenchTopLogo.png"; import Al2pCertUrl from "../../assets/al2pCert.png"; -const hide = ref(true); +const hide = ref(false); const props = defineProps({ upload: Object, diff --git a/benchtop-fe/src/components/Sheet.vue b/benchtop-fe/src/components/Sheet.vue index 054cb04..0296ddb 100644 --- a/benchtop-fe/src/components/Sheet.vue +++ b/benchtop-fe/src/components/Sheet.vue @@ -1,49 +1,51 @@ diff --git a/benchtop-fe/src/components/UploadForm.vue b/benchtop-fe/src/components/UploadForm.vue index f3cbac6..30cae36 100644 --- a/benchtop-fe/src/components/UploadForm.vue +++ b/benchtop-fe/src/components/UploadForm.vue @@ -29,12 +29,12 @@
  • - - {{ file.name }} + {{ file.name }} +
diff --git a/benchtop-fe/src/style.css b/benchtop-fe/src/style.css index fbb10a3..e937e56 100644 --- a/benchtop-fe/src/style.css +++ b/benchtop-fe/src/style.css @@ -5,7 +5,6 @@ body { .card { border: 1px solid; - min-height: 300px; } .card-header{ font-size: 2rem; @@ -14,19 +13,6 @@ body { } -.container { - display: flex; - flex-flow: column wrap; - align-content: space-between; - /* Your container needs a fixed height, and it - * needs to be taller than your tallest column. */ - height: 1800px; - - border-radius: 3px; - counter-reset: items; -} - - .item { /* Optional */ position: relative; @@ -44,29 +30,7 @@ body { 0 16px 16px rgba(0,90,250,0.05); color: #fff; box-sizing: border-box; - min-width:466px; - min-height:325px; } -.item::before { - counter-increment: items; -} - -/* Re-order items into 3 rows */ -.item:nth-child(3n+1) { order: 1; } -.item:nth-child(3n+2) { order: 2; } -.item:nth-child(3n) { order: 3; } - -/* Force new columns */ -.container::before, -.container::after { - content: ""; - flex-basis: 100%; - width: 0; - order: 2; -} - - - h3 { @@ -92,4 +56,41 @@ h3 { .dp__flex_display { display:block ! important; +} + + + + +.flextainer { + display: flex; + height: 100vh; +} + +.left { + flex: 1; + display: flex; + flex-direction: column; +} + +.grid { + display: flex; + flex-wrap: wrap; + gap: 10px; + padding-bottom: 10px; + flex-basis: 33%; +} + +.grid-item { + width: 425px; + +} + +.right { + padding-left: 1rem; + padding-right:4rem; + background-color: #fff; +} + +.px666 { + width: 666px; } \ No newline at end of file