Skip to content

Commit

Permalink
style: Add aggregate cursor nav in seqence editor right align
Browse files Browse the repository at this point in the history
  • Loading branch information
colelawrence committed Jun 27, 2022
1 parent 267dc71 commit dab8e65
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,23 @@ const LeftRowHead_Label = styled.span`
line-height: 26px;
flex-wrap: nowrap;
font-weight: bold;
${LeftRowHeader}:hover & {
color: #ccc;
}
`

const LeftRowHead_RightAlign = styled.div`
flex-wrap: nowrap;
display: flex;
align-items: center;
justify-content: end;
flex-grow: 1;
padding-right: 1.9rem;
/* border-top: 1px solid #444; */
`

const LeftRowHead_Icon = styled.span<{isCollapsed: boolean}>`
width: 12px;
padding: 8px;
Expand Down Expand Up @@ -121,8 +133,10 @@ const AnyCompositeRow: React.FC<{
<LeftRowHead_Icon isCollapsed={isCollapsed} onClick={toggleCollapsed}>
<HiOutlineChevronRight />
</LeftRowHead_Icon>
{controls && <>{controls}&nbsp;</>}
<LeftRowHead_Label>{label}</LeftRowHead_Label>
<LeftRowHead_RightAlign>
<LeftRowHead_Label>{label}</LeftRowHead_Label>
{controls && <>{controls}&nbsp;</>}
</LeftRowHead_RightAlign>
</LeftRowHeader>
{hasChildren && <LeftRowChildren>{children}</LeftRowChildren>}
</LeftRowContainer>
Expand Down

0 comments on commit dab8e65

Please sign in to comment.