This repository was archived by the owner on Oct 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed
lsg/patterns/panes/preview-pane Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ export class App extends React.Component {
163
163
key = "center"
164
164
id = "preview"
165
165
previewFrame = { `http://localhost:${ store . getServerPort ( ) } /preview.html` }
166
- /> ,
166
+ />
167
167
< SideBar side = "right" directionVertical hasBorder >
168
168
{ store . getRightPane ( ) === RightPane . Properties && (
169
169
< PropertyPane >
Original file line number Diff line number Diff line change @@ -22,34 +22,48 @@ const StyledPreviewWrapper = styled.div`
22
22
` ;
23
23
24
24
const StyledPreviewResizer = styled . div `
25
- width: 9px;
25
+ position: absolute;
26
+ top: 0;
27
+ left: 0;
28
+ width: 11px;
26
29
height: 100%;
27
30
cursor: ew-resize;
31
+ background-color: ${ colors . blackAlpha13 . toString ( ) } ;
32
+ opacity: 0;
33
+ transition: opacity 0.15s ease-in-out;
34
+
28
35
&::after {
29
36
content: '';
30
37
position: absolute;
31
38
top: 50%;
32
39
transform: translateY(-50%);
33
40
height: 36px;
34
41
width: 3px;
35
- margin: 3px ;
42
+ margin: 4px ;
36
43
border-radius: 2px;
37
44
background: ${ colors . grey80 . toString ( ) } ;
38
45
}
39
46
40
47
&:hover {
48
+ opacity: 1;
41
49
&::after {
42
50
background: ${ colors . grey60 . toString ( ) } ;
43
51
}
44
52
}
45
53
&:active {
54
+ opacity: 1;
46
55
&::after {
47
- background: ${ colors . blue40 . toString ( ) } ;
56
+ background: ${ colors . white . toString ( ) } ;
48
57
}
49
58
}
59
+ &:last-of-type {
60
+ right: 0;
61
+ left: auto;
62
+ }
50
63
` ;
51
64
52
65
const BaseStyledPreviewPane = styled . div `
66
+ position: relative;
53
67
flex-grow: 1;
54
68
overflow: hidden;
55
69
background: ${ colors . white . toString ( ) } ;
@@ -83,11 +97,11 @@ export default class PreviewPane extends React.Component<PreviewPaneProps> {
83
97
onMouseMove = { props . onMouseMove }
84
98
onMouseUp = { props . onMouseUp }
85
99
>
86
- < StyledPreviewResizer onMouseDown = { props . onMouseDownLeft } />
87
100
< StyledPreviewPane width = { props . width } >
101
+ < StyledPreviewResizer onMouseDown = { props . onMouseDownLeft } />
88
102
< StyledPreviewFrame src = { props . previewFrame } />
103
+ < StyledPreviewResizer onMouseDown = { props . onMouseDownRight } />
89
104
</ StyledPreviewPane >
90
- < StyledPreviewResizer onMouseDown = { props . onMouseDownRight } />
91
105
</ StyledPreviewWrapper >
92
106
) ;
93
107
}
You can’t perform that action at this time.
0 commit comments