mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Shrink annotations, add margin between note header and comments
This commit is contained in:
+5
-4
@@ -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 {
|
||||
|
||||
@@ -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'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user