diff --git a/.gitignore b/.gitignore index 4bcaa2a..c952a0c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store node_modules -.build \ No newline at end of file +.build +.cache diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index 70cd8b5..8ff63ae 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -1 +1,3 @@ + + \ No newline at end of file diff --git a/src/components/BannedCharacters/BannedCharacters.js b/src/components/BannedCharacters/BannedCharacters.js index 01488c8..5e2663d 100644 --- a/src/components/BannedCharacters/BannedCharacters.js +++ b/src/components/BannedCharacters/BannedCharacters.js @@ -23,20 +23,20 @@ const BannedCharacters = ({ bannedCharacters = [], highlightedCharacters = [] }) } return ( -
- Banned chars: - { content } +
+ Banned chars: + {content} diff --git a/src/components/Layout.js b/src/components/Layout.js index a37b23b..6737158 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -1,8 +1,9 @@ import { h } from 'preact'; +import { CONTENT_MAX_WIDTH } from '../constants/layout-constants'; const Layout = ({ children }) => (
- { children } + {children}
); diff --git a/src/components/PearlThread/PearlThread.js b/src/components/PearlThread/PearlThread.js index 7765d98..259eb5b 100644 --- a/src/components/PearlThread/PearlThread.js +++ b/src/components/PearlThread/PearlThread.js @@ -3,16 +3,17 @@ import { h, Component } from 'preact'; import classNames from 'classnames'; import Icon from 'react-fontawesome'; import { Colors } from './pearl-thread-style-constants'; +import { CONTENT_MAX_WIDTH } from '../../constants/layout-constants'; const FuturePearl = ({ index }) => ( - { index } + {index} @@ -24,14 +25,16 @@ const PastPearl = () => ( @@ -50,13 +53,23 @@ const TitlePearl = ({ isFirst, isLast, title }) => { return ( - { title } + {title} @@ -77,7 +90,7 @@ const Pearl = ({ isPast, index, title, isFirst, isLast, onClick = _.noop }) => { return (
onClick(index)}> - { content } + {content}
@@ -98,10 +112,10 @@ const PearlThread = ({ itemsCount, activeIndex = 0, activeTitle, onPearlClick }) const safeProgressPercentage = Math.min(progressPercentage, 100); return ( -
+
- { new Array(itemsCount).fill(0).map((_, index) => ( + {new Array(itemsCount).fill(0).map((_, index) => ( - )) } + ))}