Shrink annotations, add margin between note header and comments

This commit is contained in:
Bryan Housel
2018-07-23 23:20:34 -04:00
parent eca326a1dd
commit a3dc0e8213
2 changed files with 11 additions and 11 deletions
+5 -4
View File
@@ -39,14 +39,14 @@
.note-header-icon .note-icon-annotation {
position: absolute;
top: 21px;
left: 21px;
top: 22px;
left: 22px;
margin: auto;
}
.note-header-icon .note-icon-annotation .icon {
width: 18px;
height: 18px;
width: 15px;
height: 15px;
}
@@ -101,6 +101,7 @@
background: #ececec;
padding: 1px 10px;
border-radius: 8px;
margin-top: 20px;
}
.comment {
+6 -7
View File
@@ -99,7 +99,7 @@ export function svgNotes(projection, context, dispatch) {
var notesEnter = notes.enter()
.append('g')
.attr('class', function(d) { return 'note note-' + d.id + ' ' + d.status; })
.classed('new', function(d){ return d.id < 0; });
.classed('new', function(d) { return d.id < 0; });
notesEnter
.append('path')
@@ -122,16 +122,15 @@ export function svgNotes(projection, context, dispatch) {
.attr('y', '-22px')
.attr('xlink:href', '#iD-icon-note');
// add dots if there's a comment thread
notesEnter.selectAll('.note-annotation')
.data(function(d) { return [d]; })
.enter()
.append('use')
.attr('class', 'note-annotation thread')
.attr('width', '14px')
.attr('height', '14px')
.attr('x', '-5px')
.attr('y', '-21px')
.attr('class', 'note-annotation')
.attr('width', '10px')
.attr('height', '10px')
.attr('x', '-3px')
.attr('y', '-19px')
.attr('xlink:href', function(d) {
return '#iD-icon-' + (d.id < 0 ? 'plus' : (d.status === 'open' ? 'close' : 'apply'));
});