Skip to content

Commit 4cd2c21

Browse files
committed
Docs: tutorial vizzu can shrink.
1 parent ee4598d commit 4cd2c21

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/generator/index.in.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
<div id="page-0" class="page">
6464
<div id='vizzu-view'>
65-
<div id='vizzu-canvas'></div>
65+
<canvas id='vizzu-canvas'></canvas>
6666
</div>
6767
<div id='content'></div>
6868
</div>

docs/style/tutorial.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ th {
4646

4747
#vizzu-view {
4848
width: 100%;
49-
height: 260px;
49+
height: calc( min(100vw,480px) / 480 * 260);
5050
overflow: none;
5151
display: block;
5252
position: sticky;
@@ -121,8 +121,9 @@ th {
121121
}
122122

123123
#vizzu-canvas {
124-
width: 480px;
125-
height: 260px;
124+
width: 100vw;
125+
max-width: 480px;
126+
height: calc( min(100vw,480px) / 480 * 260);
126127
background-color: #fff;
127128
z-index: 100;
128129
filter: drop-shadow(0 2px 4px #e0dcda);

0 commit comments

Comments
 (0)