Set the Gitter logo width

Part of #440.
This commit is contained in:
Thaddee Tyl 2015-11-21 12:16:53 +01:00
parent c7ab6cbf82
commit b17c8bd8c1
2 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="7" height="14">
<g fill='#fff'>
<rect x="0.5" y="3" width="1" height="5"/>
<rect x="2.5" y="4" width="1" height="7"/>
<rect x="4.5" y="4" width="1" height="7"/>
<rect x="6.5" y="4" width="1" height="4"/>
<rect x="0" y="3" width="1" height="5"/>
<rect x="2" y="4" width="1" height="7"/>
<rect x="4" y="4" width="1" height="7"/>
<rect x="6" y="4" width="1" height="4"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 275 B

View File

@ -4332,6 +4332,7 @@ cache(function(data, match, sendBadge, request) {
});
}));
// Gitter room integration.
camp.route(/^\/gitter\/room\/([^\/]+\/[^\/]+)\.(svg|png|gif|jpg|json)$/,
cache(function(data, match, sendBadge, request) {
var userRepo = match[1];
@ -4342,6 +4343,7 @@ cache(function(data, match, sendBadge, request) {
badgeData.colorscheme = 'brightgreen';
if (darkBackgroundTemplates.some(function(t) { return t === badgeData.template; })) {
badgeData.logo = badgeData.logo || logos['gitter-white'];
badgeData.logoWidth = 7;
}
sendBadge(format, badgeData);
}));