|
15 | 15 | * limitations under the License. |
16 | 16 | */ |
17 | 17 |
|
18 | | -import React from 'react' |
| 18 | +import React from "react"; |
19 | 19 |
|
20 | | -import './BlockQuote.css' |
| 20 | +import "./BlockQuote.css"; |
21 | 21 |
|
22 | 22 | const BlockQuote = (props) => ( |
23 | | - <blockquote className="content-block"> |
24 | | - <props.elementsLibrary.DocElement {...props}/> |
25 | | - </blockquote> |
26 | | -) |
| 23 | + <blockquote className="content-block"> |
| 24 | + <props.elementsLibrary.DocElement {...props} /> |
| 25 | + </blockquote> |
| 26 | +); |
27 | 27 |
|
28 | 28 | const PresentationBlockQuote = (props) => { |
29 | | - const className = props.isPresentationDisplayed ? "no-animation" : "animate"; |
30 | | - return ( |
31 | | - <blockquote className={className}> |
32 | | - <props.elementsLibrary.DocElement {...props}/> |
33 | | - </blockquote> |
34 | | - ) |
35 | | -} |
| 29 | + const className = props.isPresentationDisplayed ? "no-animation" : "animate"; |
| 30 | + return ( |
| 31 | + <blockquote className={className}> |
| 32 | + <props.elementsLibrary.DocElement {...props} /> |
| 33 | + </blockquote> |
| 34 | + ); |
| 35 | +}; |
36 | 36 |
|
37 | 37 | const presentationBlockQuoteHandler = { |
38 | | - component: PresentationBlockQuote, |
39 | | - numberOfSlides: () => 1 |
40 | | -} |
| 38 | + component: PresentationBlockQuote, |
| 39 | + numberOfSlides: () => 1, |
| 40 | + // don't transform-scale the quote to fill the slide. instead it renders at a fixed, |
| 41 | + // slide-relative size (font-size/max-width in cqw, see BlockQuote.css) so the font |
| 42 | + // stays consistent and the text simply wraps into more lines when space is tight |
| 43 | + slideInfoProvider: () => ({ isSlideScaled: false }), |
| 44 | +}; |
41 | 45 |
|
42 | | -export {BlockQuote, presentationBlockQuoteHandler} |
| 46 | +export { BlockQuote, presentationBlockQuoteHandler }; |
0 commit comments