Skip to content

Commit

Permalink
fixes #131 #149 #182 scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryTSZ committed Jul 11, 2024
1 parent 56570f3 commit 4a07258
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 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
}
2 changes: 1 addition & 1 deletion src/animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { createAnimation, Stagger } from "./airframe/airframe";
import easing from "./airframe/easing";

const dx = 250;
const dx = 250000;
const offOpacity = 0.6;

/* @jsx createAnimation */
Expand Down
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 4a07258

Please sign in to comment.