File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,13 @@ img {
283
283
color : # aaaaaa ;
284
284
}
285
285
286
+ .result-container .result-area {
287
+ width : 100% ;
288
+ height : 84% ;
289
+ display : flex;
290
+ flex-direction : column;
291
+ }
292
+
286
293
.result-container .scanned-image {
287
294
max-height : 200px ;
288
295
}
@@ -554,8 +561,14 @@ img {
554
561
}
555
562
}
556
563
557
- @media screen and (max-width : 800px ) and (orientation : landscape) {
564
+ /* Media query for mobile phones */
565
+ @media screen and (max-width : 926px ) and (orientation : landscape) {
558
566
.result-container .parsed-result-area .parsed-filed {
559
567
font-size : 14px ;
560
568
}
569
+
570
+ .result-container .result-area {
571
+ height : 70% ;
572
+ flex-direction : row;
573
+ }
561
574
}
Original file line number Diff line number Diff line change @@ -314,8 +314,10 @@ <h3 style="font-weight: normal">Quick Start Options</h3>
314
314
</ svg >
315
315
</ div >
316
316
</ div >
317
- < div class ="scanned-image "> </ div >
318
- < div class ="parsed-result-area "> </ div >
317
+ < div class ="result-area ">
318
+ < div class ="scanned-image "> </ div >
319
+ < div class ="parsed-result-area "> </ div >
320
+ </ div >
319
321
< div class ="scan-again ">
320
322
< button class ="btn-scan-again "> Scan Again</ button >
321
323
</ div >
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export function extractDocumentFields(result) {
46
46
} ;
47
47
48
48
const getDocumentNumber = ( documentType ) => {
49
- const primaryField = documentType === "P" ? "passportNumber" : "documentNumber" ;
49
+ const primaryField = documentType ?. startsWith ( "P" ) ? "passportNumber" : "documentNumber" ;
50
50
const primaryNumber = fieldWithStatus ( primaryField ) ;
51
51
const longNumber = fieldWithStatus ( "longDocumentNumber" ) ;
52
52
You can’t perform that action at this time.
0 commit comments