Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ca0fdd7

Browse files
Fixing clearGrid after the movable start and end node
1 parent 8a3355b commit ca0fdd7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎src/Components/GridLayoutComponent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ class GridLayout extends Component {
186186
aDis:0
187187
};
188188
currRow.push(val);
189-
document.getElementById(`node-${row}-${col}`).className = '';
189+
if(!val.strt && !val.end)
190+
document.getElementById(`node-${row}-${col}`).className = '';
190191
}
191192
b.push(currRow)
192193
}

‎src/css/gridblock.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ li.nav-item {
209209

210210
.start {
211211
position: relative;
212-
background-image: url(http://icons.iconarchive.com/icons/custom-icon-design/flatastic-9/256/Start-icon.png);
212+
background-image: url(http://cdn.onlinewebfonts.com/svg/download_71708.png);
213213
background-position: center;
214214
background-repeat: no-repeat;
215215
background-size: contain;
@@ -225,7 +225,7 @@ li.nav-item {
225225

226226
.end {
227227
position: relative;
228-
background-image: url(http://pngimg.com/uploads/dot/dot_PNG14.png);
228+
background-image: url(http://cdn.onlinewebfonts.com/svg/img_208778.png);
229229
background-position: center;
230230
background-repeat: no-repeat;
231231
background-size: contain;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /