Skip to content

Commit fd85d3a

Browse files
committed
Fixing font scaling & patch bump
1 parent 3e2f152 commit fd85d3a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spectacle",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "ReactJS Powered Presentation Framework",
55
"main": "lib/index.js",
66
"scripts": {

src/components/slide.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,13 @@ const Slide = React.createClass({
113113
flex: 1,
114114
maxHeight: this.props.maxHeight || 700,
115115
maxWidth: this.props.maxWidth || 1000,
116-
fontSize: 16 * this.state.zoom,
117116
transform: `scale(${this.state.contentScale})`,
118117
padding: this.state.zoom > 0.6 ? this.props.margin || 40 : 10
119118
}
120119
};
120+
121+
document.documentElement.style.fontSize = `${16 * this.state.zoom}px`;
122+
121123
return (
122124
<div className="spectacle-slide"
123125
ref="slide"

src/themes/default/screen.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ const screen = (colorArgs = defaultColors, fontArgs = defaultFonts) => {
115115
blockquote: {
116116
textAlign: "left",
117117
position: "relative",
118-
display: "inline-block"
118+
display: "inline-block",
119+
margin: 20
119120
},
120121
quote: {
121122
borderLeft: `1px solid ${colors.primary}`,

0 commit comments

Comments
 (0)