Skip to content

Commit c19b147

Browse files
committed
react: styling unification
1 parent 9a9f81a commit c19b147

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

react-js/src/pages/DocumentScannerPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function DocumentScannerPage() {
2424
const analyzer = await SBSDKService.SDK.createDocumentQualityAnalyzer({});
2525
const analysis = await analyzer.analyze(result.croppedImage);
2626
console.log("Document quality analysis: ", analysis);
27-
27+
2828
// Rotate the image 360 degrees clockwise, just for the hell of it
2929
let rotated = await SBSDKService.SDK.imageRotate(result.croppedImage, "CLOCKWISE_180");
3030
rotated = await SBSDKService.SDK.imageRotate(rotated, "CLOCKWISE_180");

react-js/src/pages/StoredDataDetailsPage.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { SBStoreCroppedDetectionResult } from "scanbot-web-sdk/@types";
55
import SBSDKService from "../service/SBSDKService";
66
import ImageUtils from "../service/ImageUtils";
77
import { TopBar } from "../subviews/TopBar";
8+
import { TextColor } from "../subviews/FeatureListItem.tsx";
89

910
export default function StorageDetailsPage() {
1011

@@ -35,12 +36,21 @@ export default function StorageDetailsPage() {
3536
}, []);
3637

3738
return (
38-
<Box style={{ display: "flex", flexDirection: "column", alignItems: "center", width: "100vw", height: "100vh" }}>
39+
<Box style={{
40+
display: "flex",
41+
flexDirection: "column",
42+
alignItems: "center",
43+
width: "100vw",
44+
height: "100vh",
45+
backgroundColor: "white"
46+
}}>
3947
<TopBar title={"Document Details"} isBackNavigationEnabled={true} />
40-
<h1>Storage Details</h1>
41-
<h3>Item ID: {item?.id}</h3>
42-
<img src={base64Image} alt={`Storage image ${item?.id}`}
43-
style={{ width: "90%", maxHeight: 500, objectFit: "contain" }} />
48+
<h2 style={{ color: TextColor }}>Storage Details</h2>
49+
<h3 style={{ color: TextColor }}>Item ID: {item?.id}</h3>
50+
<img src={base64Image}
51+
alt={`Storage image ${item?.id}`}
52+
style={{ width: "90%", maxHeight: 500, objectFit: "contain" }}
53+
/>
4454
</Box>
4555
)
4656
}

react-js/src/pages/StoredDataPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function StoredDataPage() {
2121
}, []);
2222

2323
return (
24-
<Box style={{ width: "100vw", height: "100vh" }}>
24+
<Box style={{ width: "100vw", height: "100vh", backgroundColor: "white" }}>
2525
<TopBar title={"Stored Data"} isBackNavigationEnabled={true} />
2626
<ImageList cols={3} rowHeight={164} style={{ padding: 20 }}>
2727
{detectionResults.map((item) => (

0 commit comments

Comments
 (0)