Skip to content

Commit

Permalink
fix(Popover): blured story example TET-517
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-potepa committed Nov 9, 2023
1 parent f565c91 commit 3a14e73
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/components/Popover/Popover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const meta = {
tags: ['autodocs'],
args: {
content: (
<tet.div display="flex" gap="12px" alignItems="center">
<tet.div display="flex" gap="12px" alignItems="center" w="324px">
<Avatar
appearance="image"
img={{
Expand All @@ -39,6 +39,7 @@ const meta = {
size="small"
beforeIcon="20-check-large"
label="Following"
ml="auto"
/>
</tet.div>
),
Expand Down
24 changes: 12 additions & 12 deletions src/components/Popover/Popover.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,63 +18,63 @@ export const defaultConfig = {
top: {
align: {
start: {
transform: 'translate(0%, -100%)',
transform: 'translate(0%, -100%) translateZ(0)',
left: '50%',
},
center: {
transform: 'translate(-50%, -100%)',
transform: 'translate(-50%, -100%) translateZ(0)',
left: '50%',
},
end: {
transform: 'translate(-100%, -100%)',
transform: 'translate(-100%, -100%) translateZ(0)',
left: '50%',
},
},
},
bottom: {
align: {
start: {
transform: 'translate(0%, 100%)',
transform: 'translate(0%, 100%) translateZ(0)',
left: '50%',
},
center: {
transform: 'translate(-50%, 100%)',
transform: 'translate(-50%, 100%) translateZ(0)',
left: '50%',
},
end: {
transform: 'translate(-100%, 100%)',
transform: 'translate(-100%, 100%) translateZ(0)',
left: '50%',
},
},
},
left: {
align: {
start: {
transform: 'translate(-100%, 0%)',
transform: 'translate(-100%, 0%) translateZ(0)',
top: '50%',
},
center: {
transform: 'translate(-100%, -50%)',
transform: 'translate(-100%, -50%) translateZ(0)',
top: '50%',
},
end: {
transform: 'translate(-100%, -100%)',
transform: 'translate(-100%, -100%) translateZ(0)',
top: '50%',
},
},
},
right: {
align: {
start: {
transform: 'translate(100%, 0%)',
transform: 'translate(100%, 0%) translateZ(0)',
top: '50%',
},
center: {
transform: 'translate(100%, -50%)',
transform: 'translate(100%, -50%) translateZ(0)',
top: '50%',
},
end: {
transform: 'translate(100%, -100%)',
transform: 'translate(100%, -100%) translateZ(0)',
top: '50%',
},
},
Expand Down

0 comments on commit 3a14e73

Please sign in to comment.