Browse Source

Fix slack service icon position when title empty.

Issue #1209

Use absolute positioning for slack service icon instead of margins to avoid incorrect positions without text content for service title.
pull/1210/head
_nderscore 8 years ago committed by GitHub
parent
commit
bdaa608ceb
  1. 2
      app/util/IconLoader.js

2
app/util/IconLoader.js

@ -23,7 +23,7 @@ Ext.define('Rambox.util.IconLoader', {
false, false,
function (backgroundImage) { function (backgroundImage) {
if (backgroundImage) { if (backgroundImage) {
service.setTitle('<img src="'+service.icon+'" width="" style="background-color: white;border-radius: 50%;position: absolute;margin-left: -12px;margin-top: 17px;width: 12px;">'+service.title); service.setTitle('<img src="'+service.icon+'" width="" style="background-color: white;border-radius: 50%;position: absolute;left: 18px;top: 17px;width: 12px;">'+service.title);
service.fireEvent('iconchange', service, backgroundImage, service.icon); service.fireEvent('iconchange', service, backgroundImage, service.icon);
} }
} }

Loading…
Cancel
Save