Skip to content

Commit 1a2e8af

Browse files
committed
feat: increase screen real estate of modal
1 parent c62ff9d commit 1a2e8af

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@simplepdf/react-embed-pdf",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "SimplePDF straight into your React app",
55
"repository": {
66
"type": "git",

react/src/styles.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
height: 100vh;
1010
width: 100%;
1111
z-index: 999999;
12-
padding: 20px;
12+
padding: 16px;
1313
top: 0;
1414
left: 0;
1515
background: rgba(0, 0, 0, 0.4);
1616
}
1717

1818
.simplePDF_content {
19-
width: 94vw;
20-
height: 94vh;
19+
width: 100%;
20+
height: 100%;
2121
position: relative;
2222
box-sizing: border-box;
2323
}

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@simplepdf/web-embed-pdf",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "SimplePDF straight into your website",
55
"repository": {
66
"type": "git",

web/src/shared.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ export const openEditor = ({
7878
height: 100vh;
7979
width: 100%;
8080
z-index: 999999;
81-
padding: 20px;
81+
padding: 16px;
8282
top: 0;
8383
left: 0;
8484
background: rgba(0, 0, 0, 0.4);
8585
}
8686
8787
.simplePDF_content {
88-
width: 94vw;
89-
height: 94vh;
88+
width: 100%;
89+
height: 100%;
9090
position: relative;
9191
box-sizing: border-box;
9292
}
@@ -161,10 +161,7 @@ export const openEditor = ({
161161
?.addEventListener("click", closeEditor);
162162
};
163163

164-
const log = (
165-
message: string,
166-
details: Record<string, unknown>
167-
) => {
164+
const log = (message: string, details: Record<string, unknown>) => {
168165
const isDebugEnabled = window["simplePDF"]?.isDebug === true;
169166

170167
if (!isDebugEnabled) {

0 commit comments

Comments
 (0)