Spaces:
Running
Running
Commit
·
07cc8b7
1
Parent(s):
3e6e6e9
auto resizing
Browse files
viewer/src/app.html
CHANGED
@@ -6,6 +6,7 @@
|
|
6 |
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
7 |
<link rel="stylesheet" href="%sveltekit.assets%/global.css" />
|
8 |
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
|
|
|
9 |
<meta name="viewport" content="width=device-width" />
|
10 |
%sveltekit.head%
|
11 |
</head>
|
|
|
6 |
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
7 |
<link rel="stylesheet" href="%sveltekit.assets%/global.css" />
|
8 |
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
|
9 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
|
10 |
<meta name="viewport" content="width=device-width" />
|
11 |
%sveltekit.head%
|
12 |
</head>
|
viewer/src/routes/viewer/[slug]/+page.svelte
CHANGED
@@ -220,8 +220,8 @@
|
|
220 |
flex-direction: column;
|
221 |
justify-content: center;
|
222 |
align-items: center;
|
223 |
-
width:
|
224 |
-
height:
|
225 |
overflow: hidden;
|
226 |
}
|
227 |
|
|
|
220 |
flex-direction: column;
|
221 |
justify-content: center;
|
222 |
align-items: center;
|
223 |
+
width: 100%;
|
224 |
+
height: 100%;
|
225 |
overflow: hidden;
|
226 |
}
|
227 |
|