diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-12-04 08:28:38 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-12-04 08:28:38 +0100 |
commit | 440afcb2f5b13982ea93b3fcb8854cdb61722442 (patch) | |
tree | f37f1231bd821cd662223f0738ad9e11a00bb5c8 | |
parent | a8db3a02693e14dccd98f401e5ae78f6e5822b57 (diff) | |
download | puszcza-440afcb2f5b13982ea93b3fcb8854cdb61722442.tar.gz puszcza-440afcb2f5b13982ea93b3fcb8854cdb61722442.zip |
Fix storyshots
-rw-r--r-- | .storybook/config.js | 4 | ||||
-rw-r--r-- | components/Facebook/FacebookFindUsButton.vue | 2 | ||||
-rw-r--r-- | components/Ranking/RankingFirstEntry.vue | 1 | ||||
-rw-r--r-- | components/Ranking/RankingList.stories.js | 5 |
4 files changed, 7 insertions, 5 deletions
diff --git a/.storybook/config.js b/.storybook/config.js index 7126515..45f33c0 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -1,6 +1,8 @@ import { configure } from '@storybook/vue' -import '../assets/css/main.css' +if (!process.env.JEST_WORKER_ID) { + require('../assets/css/main.css') +} const req = require.context('../components', true, /\.stories.js$/) function loadStories() { diff --git a/components/Facebook/FacebookFindUsButton.vue b/components/Facebook/FacebookFindUsButton.vue index 05aa9f6..b955b0b 100644 --- a/components/Facebook/FacebookFindUsButton.vue +++ b/components/Facebook/FacebookFindUsButton.vue @@ -32,6 +32,8 @@ .image { width: 200px; + display: block; + margin: auto; } @media (max-width: 500px) { diff --git a/components/Ranking/RankingFirstEntry.vue b/components/Ranking/RankingFirstEntry.vue index d9f290b..ad0bea0 100644 --- a/components/Ranking/RankingFirstEntry.vue +++ b/components/Ranking/RankingFirstEntry.vue @@ -44,6 +44,7 @@ export default { .ranking-first-entry__troop { grid-column: 2; + text-align: center; } .ranking-first-entry__points { diff --git a/components/Ranking/RankingList.stories.js b/components/Ranking/RankingList.stories.js index 830dd6a..ad3576b 100644 --- a/components/Ranking/RankingList.stories.js +++ b/components/Ranking/RankingList.stories.js @@ -18,9 +18,6 @@ storiesOf('Ranking/RankingList', module) return { components: { RankingList }, template: `<ranking-list :scores="scores" />`, - data: () => { - console.log(rankingList) - return rankingList - } + data: () => rankingList } }) |