Skip to content

Commit

Permalink
keep code aligned when mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmaniero committed Mar 8, 2021
1 parent f29c16a commit f596d0d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs-mfe/components/command-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,23 @@ const DescriptionNumberWrapper = styled.div`
align-items: center;
`

const TaskWrapper = styled.div`
min-width: 100%;
max-width: 100%;
width: 100%;
@media (max-width: 960px) {
margin-left: 52px;
}
`;

export const CommandListItem = ({number, description, task}) => <>
<DescriptionNumberWrapper>
<CommandListItemNumber>{number}</CommandListItemNumber>
<CommandListItemDescription>{description}</CommandListItemDescription>
</DescriptionNumberWrapper>

{task}
<TaskWrapper>{task}</TaskWrapper>
</>

export const CommandList = ({items}) => {
Expand Down

0 comments on commit f596d0d

Please sign in to comment.