Skip to content

Commit

Permalink
pkp/pkp-lib#9527 Adjust size for modal to be screenshoted
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Dec 18, 2023
1 parent 76313a7 commit b43e0bf
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions src/components/Modal/Modal.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ export const Base = {

return {isModalOpened};
},
decorators: [
(Story) => (
<div style={{height: '400px'}}>
<Story />
</div>
),
],
template: `
<PkpButton ref="simpleModalButton" @click="isModalOpened = true">
Open Modal
Expand All @@ -40,6 +33,13 @@ export const Base = {
</Modal>
`,
}),
decorators: [
() => ({
template:
'<div style="height: 150px;background-color:red"><story/></div>',
}),
],

args: {},
};

Expand Down Expand Up @@ -71,6 +71,13 @@ export const WithForm = {
</Modal>
`,
}),
decorators: [
() => ({
template:
'<div style="height: 1500px;background-color:red"><story/></div>',
}),
],

args: {},
};

Expand Down Expand Up @@ -121,6 +128,13 @@ export const WithTabs = {
</modal>
`,
}),
decorators: [
() => ({
template:
'<div style="height: 500px;background-color:red"><story/></div>',
}),
],

args: {},
};

Expand Down Expand Up @@ -187,5 +201,12 @@ export const WithActions = {
</Modal>
`,
}),
decorators: [
() => ({
template:
'<div style="height: 300px;background-color:red"><story/></div>',
}),
],

args: {},
};

0 comments on commit b43e0bf

Please sign in to comment.