File tree Expand file tree Collapse file tree 3 files changed +24
-11
lines changed Expand file tree Collapse file tree 3 files changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import Overlay from '../../App/components/Overlay';
20
20
import SketchList from '../../IDE/components/AddToCollectionSketchList' ;
21
21
import CopyableInput from '../../IDE/components/CopyableInput' ;
22
22
import { SketchSearchbar } from '../../IDE/components/Searchbar' ;
23
+ import dropdownArrow from '../../../images/down-arrow.svg' ;
23
24
24
25
const arrowUp = require ( '../../../images/sort-arrow-up.svg' ) ;
25
26
const arrowDown = require ( '../../../images/sort-arrow-down.svg' ) ;
@@ -30,14 +31,14 @@ const ShareURL = ({ value }) => {
30
31
31
32
return (
32
33
< div className = "collection-share" >
33
- {
34
- showURL ?
35
- < React . Fragment >
36
- < span className = "collection-share__label" > Everyone can access the collection with this link </ span >
37
- < br />
38
- < CopyableInput value = { value } / >
39
- </ React . Fragment > :
40
- < button className = "collection-share__button" onClick = { ( ) => setShowURL ( true ) } > Share </ button >
34
+ < button className = "collection-share__button" onClick = { ( ) => setShowURL ( ! showURL ) } >
35
+ < span > Share </ span >
36
+ < InlineSVG className = "collection-share__arrow" src = { dropdownArrow } / >
37
+ </ button >
38
+ { showURL &&
39
+ < div className = "collection__share-dropdown" >
40
+ < CopyableInput value = { value } label = "Link to Collection" />
41
+ </ div >
41
42
}
42
43
</ div >
43
44
) ;
Original file line number Diff line number Diff line change 83
83
border : 2px solid getThemifyVariable (' button-border-color' );
84
84
border-radius : 2px ;
85
85
padding : #{10 / $base-font-size } rem #{30 / $base-font-size } rem;
86
+ & g {
87
+ fill : getThemifyVariable (' button-color' );
88
+ opacity : 1 ;
89
+ }
86
90
& :enabled:hover {
87
91
border-color : getThemifyVariable (' button-background-hover-color' );
88
92
background-color : getThemifyVariable (' button-background-hover-color' );
Original file line number Diff line number Diff line change 84
84
85
85
.collection-share {
86
86
text-align : right ;
87
+ position : relative ;
87
88
}
88
89
89
90
.collection-share__button {
90
91
@extend %button ;
92
+ display : flex ;
93
+ align-items : center ;
91
94
}
92
95
93
- .collection-share__label {
94
- display : block ;
95
- text-align : left ;
96
+ .collection-share__arrow {
97
+ margin-left : #{5 / $base-font-size } rem;
96
98
}
97
99
98
100
.collection-share .copyable-input {
99
101
padding-bottom : 0 ;
100
102
}
101
103
104
+ .collection__share-dropdown {
105
+ @extend %dropdown-open-right ;
106
+ padding : #{20 / $base-font-size } rem;
107
+ width : #{350 / $base-font-size } rem;
108
+ }
109
+
102
110
.collection-metadata__add-button {
103
111
@extend %button ;
104
112
flex-grow : 0 ;
You can’t perform that action at this time.
0 commit comments