Skip to content

Commit

Permalink
fix(EntityCard): notification dot
Browse files Browse the repository at this point in the history
  • Loading branch information
Innders committed Oct 3, 2024
1 parent 2c4f85a commit dcc6b6f
Show file tree
Hide file tree
Showing 7 changed files with 361 additions and 276 deletions.
4 changes: 2 additions & 2 deletions src/EntityCard/EntityCard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Template = ({ onActivate, ...props }: TemplateProps) => {
const [isActive, setIsActive] = useState(false)
return (
<div style={{ display: 'flex', gap: 16 }}>
<div style={{ width: '100%' }}>
<div style={{ width: '100%', maxWidth: 210 }}>
<EntityCard
isActive={isActive}
onActivate={() => {
Expand Down Expand Up @@ -167,6 +167,7 @@ const initData: DataProps = {
export const Default: Story = {
args: {
...initData,
notification: { comment: true },
},
render: Template,
}
Expand All @@ -182,7 +183,6 @@ export const Loading: Story = {
export const TaskStatus: Story = {
args: {
variant: 'status',
notification: undefined,
disabled: false,
...initData,
isPlayable: false,
Expand Down
4 changes: 4 additions & 0 deletions src/EntityCard/EntityCard.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const cardHoverStyles = css`
}
`

export const Wrapper = styled.div`
position: relative;
`

type CardProps = {
$statusColor?: string
}
Expand Down
Loading

0 comments on commit dcc6b6f

Please sign in to comment.