Skip to content

Commit

Permalink
fix: defaultLayerHeader chevron rotation (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hahlh authored Feb 8, 2024
1 parent 31ad651 commit 7d091ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-goats-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@craftjs/layers": patch
---

Improve defaultLayerHeader chevron rotation
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ const StyledDiv = styled.div<{ depth: number; selected: boolean }>`
const Expand = styled.a<{ expanded: boolean }>`
width: 8px;
height: 8px;
display: block;
display: flex;
align-items: center;
justify-content: center;
transform-origin: center;
transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
transform: rotate(${(props) => (props.expanded ? 180 : 0)}deg);
opacity: 0.7;
cursor: pointer;
transform-origin: 60% center;
`;

const Hide = styled.a<{ selected: boolean; isHidden: boolean }>`
Expand Down

0 comments on commit 7d091ab

Please sign in to comment.