Skip to content

Commit

Permalink
refactor(storybook): Review touches for VaAspectRatio.stories.ts (epi…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fsss126 committed Nov 29, 2023
1 parent fc1fe71 commit 4e857c0
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions packages/ui/src/components/va-aspect-ratio/VaAspectRatio.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default {
export const Default = () => ({
components: { VaAspectRatio },
template: `
<va-aspect-ratio
:style="{ width: '200px', border: '1px solid black' }"
<va-aspect-ratio
class="w-48 border-dashed border-2"
:ratio="1/1"
>
Content
Expand All @@ -22,15 +22,15 @@ export const Ratio = () => ({
components: { VaAspectRatio },
template: `
[1/1]
<va-aspect-ratio
:style="{ width: '200px', border: '1px solid black' }"
<va-aspect-ratio
class="w-48 border-dashed border-2"
:ratio="1/1"
>
Content
</va-aspect-ratio>
[16/9]
<va-aspect-ratio
:style="{ width: '200px', border: '1px solid black' }"
<va-aspect-ratio
class="w-48 border-dashed border-2"
:ratio="16/9"
>
Content
Expand All @@ -42,16 +42,16 @@ export const contentHeightAndWidth = () => ({
components: { VaAspectRatio },
template: `
[200/200]
<va-aspect-ratio
:style="{ width: '200px', border: '1px solid black' }"
<va-aspect-ratio
class="w-48 border-dashed border-2"
:content-width="200"
:content-height="200"
>
Content
</va-aspect-ratio>
[1280/720]
<va-aspect-ratio
:style="{ width: '200px', border: '1px solid black' }"
<va-aspect-ratio
class="w-48 border-dashed border-2"
:content-width="1280"
:content-height="720"
>
Expand All @@ -63,21 +63,13 @@ export const contentHeightAndWidth = () => ({
export const maxWidth = () => ({
components: { VaAspectRatio },
template: `
[200]
<va-aspect-ratio
:style="{ width: '500px', border: '1px solid black' }"
<va-aspect-ratio
class="border-dashed border-2"
style="width: 500px"
:max-width="200"
:ratio="16/9"
>
Content
</va-aspect-ratio>
[500]
<va-aspect-ratio
:style="{ width: '500px', border: '1px solid black' }"
:max-width="500"
:ratio="16/9"
>
Content
Max width 200px
</va-aspect-ratio>
`,
})

0 comments on commit 4e857c0

Please sign in to comment.