-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add resize of Span Detail drawer (#1232)
- Loading branch information
Showing
6 changed files
with
128 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,37 @@ | ||
import styled, {css} from 'styled-components'; | ||
import styled, {createGlobalStyle, css} from 'styled-components'; | ||
|
||
export const GlobalStyle = createGlobalStyle` | ||
.reflex-container.vertical > .reflex-splitter { | ||
border-left: ${({theme}) => `1px solid ${theme.color.borderLight}`}; | ||
border-right: ${({theme}) => `1px solid ${theme.color.borderLight}`}; | ||
position: relative; | ||
} | ||
`; | ||
|
||
export const ButtonContainer = styled.div` | ||
position: absolute; | ||
right: -12px; | ||
top: 48px; | ||
`; | ||
|
||
export const Container = styled.div<{$isOpen: boolean}>` | ||
export const Content = styled.div<{$isOpen: boolean}>` | ||
background-color: ${({theme}) => theme.color.white}; | ||
box-shadow: 0 20px 24px rgba(153, 155, 168, 0.18); | ||
height: 100%; | ||
min-width: 30px; | ||
overflow: visible; | ||
position: relative; | ||
transition: width ease 0.2s, min-width ease 0.2s; | ||
width: 30px; | ||
z-index: 2; | ||
> div:first-child { | ||
> div { | ||
opacity: 0; | ||
pointer-events: none; | ||
} | ||
${({$isOpen}) => | ||
$isOpen && | ||
css` | ||
min-width: 270px; | ||
transition: width ease 0.2s 0.05s, min-width ease 0.2s 0.05s; | ||
width: 270px; | ||
> div:first-child { | ||
> div { | ||
opacity: 1; | ||
pointer-events: auto; | ||
} | ||
`} | ||
`; | ||
|
||
export const Content = styled.div` | ||
height: 100%; | ||
overflow: hidden; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters