File tree Expand file tree Collapse file tree 6 files changed +54
-631
lines changed Expand file tree Collapse file tree 6 files changed +54
-631
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,14 @@ class AssetList extends React.Component {
44
44
</ thead >
45
45
< tbody >
46
46
{ this . props . assets . map ( asset =>
47
- ( < tr className = "asset-table__row" key = { asset . key } >
48
- < td > { asset . name } </ td >
49
- < td > { prettyBytes ( asset . size ) } </ td >
50
- < td > < Link to = { asset . url } target = "_blank" > View</ Link > </ td >
51
- < td > < Link to = { `/${ this . props . username } /sketches/${ asset . sketchId } ` } > { asset . sketchName } </ Link > </ td >
52
- </ tr > ) ) }
47
+ (
48
+ < tr className = "asset-table__row" key = { asset . key } >
49
+ < td > { asset . name } </ td >
50
+ < td > { prettyBytes ( asset . size ) } </ td >
51
+ < td > < Link to = { asset . url } target = "_blank" > View</ Link > </ td >
52
+ < td > < Link to = { `/${ this . props . username } /sketches/${ asset . sketchId } ` } > { asset . sketchName } </ Link > </ td >
53
+ </ tr >
54
+ ) ) }
53
55
</ tbody >
54
56
</ table > }
55
57
</ div >
Original file line number Diff line number Diff line change @@ -35,21 +35,23 @@ class CopyableInput extends React.Component {
35
35
} = this . props ;
36
36
return (
37
37
< div className = "copyable-input" >
38
- < label className = "copyable-input__label" htmlFor = "copyable-input__value" > { label } </ label >
39
38
< div
40
39
className = "copyable-input__value-container tooltipped-no-delay"
41
40
aria-label = "Copied to Clipboard!"
42
41
ref = { ( element ) => { this . tooltip = element ; } }
43
42
onMouseLeave = { this . onMouseLeaveHandler }
44
43
>
45
- < input
46
- type = "text"
47
- className = "copyable-input__value"
48
- id = "copyable-input__value"
49
- value = { value }
50
- ref = { ( element ) => { this . input = element ; } }
51
- readOnly
52
- />
44
+ < label className = "copyable-input__label" htmlFor = "copyable-input__value" >
45
+ { label }
46
+ < input
47
+ type = "text"
48
+ className = "copyable-input__value"
49
+ id = "copyable-input__value"
50
+ value = { value }
51
+ ref = { ( element ) => { this . input = element ; } }
52
+ readOnly
53
+ />
54
+ </ label >
53
55
</ div >
54
56
</ div >
55
57
) ;
Original file line number Diff line number Diff line change 13
13
.copyable-input__value {
14
14
width : 100% ;
15
15
font-size : #{16 / $base-font-size } rem;
16
+ margin-top : #{5 / $base-font-size } rem;
16
17
}
17
18
18
19
.copyable-input__label {
19
20
width : 100% ;
20
21
font-size : #{12 / $base-font-size } rem;
21
- padding-bottom : #{5 / $base-font-size } rem;
22
22
@include themify () {
23
23
color : getThemifyVariable (' inactive-text-color' );
24
24
}
34
34
width : 100% ;
35
35
}
36
36
37
- .tooltipped ::after {
38
- @include themify () {
39
- background-color : getThemifyVariable (' button-background-hover-color' );
40
- color : getThemifyVariable (' button-hover-color' );
37
+ .copyable-input {
38
+ .tooltipped ::after {
39
+ @include themify () {
40
+ background-color : getThemifyVariable (' button-background-hover-color' );
41
+ color : getThemifyVariable (' button-hover-color' );
42
+ }
43
+ font-family : Montserrat, sans-serif ;
44
+ font-size : #{12 / $base-font-size } rem;
45
+ bottom : #{41 / $base-font-size } rem;
41
46
}
42
- font-family : Montserrat, sans-serif ;
43
- font-size : #{12 / $base-font-size } rem;
44
- }
45
47
46
- .tooltipped-n ::before ,
47
- .tooltipped ::before ,
48
- {
49
- @include themify () {
50
- color : getThemifyVariable (' button-background-hover-color' );
51
- border-top-color : getThemifyVariable (' button-background-hover-color' );
48
+ .tooltipped-n ::before ,
49
+ .tooltipped ::before ,
50
+ {
51
+ @include themify () {
52
+ color : getThemifyVariable (' button-background-hover-color' );
53
+ border-top-color : getThemifyVariable (' button-background-hover-color' );
54
+ }
55
+ top : #{14 / $base-font-size } rem;
52
56
}
53
57
}
You can’t perform that action at this time.
0 commit comments