Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
glodon authored and glodon committed Jul 5, 2024
1 parent 56570f3 commit 9234e9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"prettier.semi": true,
"prettier.singleQuote": false,
"prettier.printWidth": 80
}
5 changes: 2 additions & 3 deletions src/scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ export default function Scroller({
<div
style={{
height: "100%",
overflowY: "auto",
overflowX: "hidden"
overflow: "auto"
}}
className="scroller"
ref={ref}
Expand All @@ -162,8 +161,8 @@ export default function Scroller({
>
<code
style={{
background: "transparent",
display: "block",
width: "calc(100% - 20px)",
maxWidth: "900px",
margin: "auto",
padding: "10px",
Expand Down
5 changes: 1 addition & 4 deletions src/slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ function getLineHeight(line, i, { styles }) {
function getLine(line, i, { styles }) {
const style = styles[i];
return (
<div
style={Object.assign({ overflow: "hidden", height: "15px" }, style)}
key={line.key}
>
<div style={Object.assign({ height: "15px" }, style)} key={line.key}>
{!line.tokens.length && <br />}
{line.tokens.map((token, i) => {
const style = themeStylesByType[token.type] || {};
Expand Down

0 comments on commit 9234e9e

Please sign in to comment.