[pluginmanager] limit plugin icon maximum size to prevent breaking description page layout

This commit is contained in:
Alexander Bruy 2016-05-28 10:36:00 +03:00
parent 4f49b8b742
commit e60ed0511f

View File

@ -744,7 +744,7 @@ void QgsPluginManager::showPluginDetails( QStandardItem * item )
{
iconPath = "file://" + iconPath;
}
html += QString( "<img src=\"%1\" style=\"float:right;\">" ).arg( iconPath );
html += QString( "<img src=\"%1\" style=\"float:right;max-width:64px;max-height:64px;\">" ).arg( iconPath );
}
html += QString( "<h1>%1</h1>" ).arg( metadata->value( "name" ) );