added tooltip in search results for map
This commit is contained in:
parent
13118d0ea9
commit
b077dd6010
2 changed files with 13 additions and 7 deletions
|
@ -237,6 +237,11 @@
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mapContributorsIcon li span {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.searchHeader {
|
.searchHeader {
|
||||||
height: 42px;
|
height: 42px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -483,7 +488,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarSearch .topicOriginatorIcon .tip {
|
.sidebarSearch .topicOriginatorIcon .tip {
|
||||||
margin-right: -147px;
|
margin-right: -120px;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
}
|
}
|
||||||
.sidebarSearch .tip {
|
.sidebarSearch .tip {
|
||||||
|
@ -506,9 +511,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarSearch .mapContributorsIcon .tip {
|
.sidebarSearch .mapContributorsIcon .tip {
|
||||||
margin-right: -144px;
|
margin-right: -120px;
|
||||||
top: -11px;
|
top: -5px;
|
||||||
padding-top: 3px;
|
padding-top: 5px;
|
||||||
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarSearch .hoverForTip .tip li {
|
.sidebarSearch .hoverForTip .tip li {
|
||||||
|
@ -518,7 +524,7 @@
|
||||||
|
|
||||||
.tipUserImage {
|
.tipUserImage {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 4px;
|
top: 0px;
|
||||||
left: 7px;
|
left: 7px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
}
|
}
|
||||||
|
@ -534,7 +540,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarSearch .mapContributorsIcon .tip:before {
|
.sidebarSearch .mapContributorsIcon .tip:before {
|
||||||
top: 71px;
|
top: 65px;
|
||||||
left: -4px;
|
left: -4px;
|
||||||
margin-top: -53px;
|
margin-top: -53px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ module MapsHelper
|
||||||
m.contributors.each_with_index do |c, index|
|
m.contributors.each_with_index do |c, index|
|
||||||
userImage = c.image.url(:square)
|
userImage = c.image.url(:square)
|
||||||
name = c.name
|
name = c.name
|
||||||
contributorTip += '<li> <img class="rtUserImage" width="25" height="25" src=' + userImage + ' />' + name + '</li>'
|
contributorTip += '<li> <img class="tipUserImage" width="25" height="25" src=' + userImage + ' />' + '<span>' + name + '</span> </li>'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
map['contributorTip'] = contributorTip
|
map['contributorTip'] = contributorTip
|
||||||
|
|
Loading…
Reference in a new issue