Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90c76c1

Browse files
committed
fix linting errors
1 parent bd303b7 commit 90c76c1

File tree

6 files changed

+54
-631
lines changed

6 files changed

+54
-631
lines changed

client/modules/IDE/components/AssetList.jsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ class AssetList extends React.Component {
4444
</thead>
4545
<tbody>
4646
{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+
))}
5355
</tbody>
5456
</table>}
5557
</div>

client/modules/IDE/components/CopyableInput.jsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,23 @@ class CopyableInput extends React.Component {
3535
} = this.props;
3636
return (
3737
<div className="copyable-input">
38-
<label className="copyable-input__label" htmlFor="copyable-input__value">{label}</label>
3938
<div
4039
className="copyable-input__value-container tooltipped-no-delay"
4140
aria-label="Copied to Clipboard!"
4241
ref={(element) => { this.tooltip = element; }}
4342
onMouseLeave={this.onMouseLeaveHandler}
4443
>
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>
5355
</div>
5456
</div>
5557
);

client/styles/components/_copyable-input.scss

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
.copyable-input__value {
1414
width: 100%;
1515
font-size: #{16 / $base-font-size}rem;
16+
margin-top: #{5 / $base-font-size}rem;
1617
}
1718

1819
.copyable-input__label {
1920
width: 100%;
2021
font-size: #{12 / $base-font-size}rem;
21-
padding-bottom: #{5 / $base-font-size}rem;
2222
@include themify() {
2323
color: getThemifyVariable('inactive-text-color');
2424
}
@@ -34,20 +34,24 @@
3434
width: 100%;
3535
}
3636

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;
4146
}
42-
font-family: Montserrat, sans-serif;
43-
font-size: #{12 / $base-font-size}rem;
44-
}
4547

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;
5256
}
5357
}

0 commit comments

Comments
 (0)