Fixed: Plugin's help popover (Better view for plugin's readme content)

This commit is contained in:
RainLoop Team 2015-11-19 00:11:47 +03:00
parent e8fbdff09c
commit 3887073016
3 changed files with 19 additions and 3 deletions

View file

@ -181,6 +181,19 @@ html.rgba.textshadow {
}
}
.popover {
width: auto;
min-width: 250px;
max-width: 550px;
.popover-content pre {
border: none;
background: rgba(0, 0, 0, 0);
padding: 0;
word-break: break-word;
}
}
.btn-group > .btn {
border-radius: 0 !important;
}

View file

@ -46,12 +46,15 @@
}, this);
this.readmePopoverConf = {
'placement': 'top',
'placement': 'right',
'trigger': 'hover',
// 'trigger': 'click',
'title': Translator.i18n('POPUPS_PLUGIN/TOOLTIP_ABOUT_TITLE'),
'container': 'body',
'html': true,
'content': function () {
return self.readme();
return '<pre>' + self.readme() + '</pre>';
// .replace(/[\r]/g, '').replace(/[\n]/g, '<br />').replace(/[\t]/g, '&nbsp;&nbsp;&nbsp;');
}
};