support screenshot in MarketPlace

This commit is contained in:
Xuan Sang LE 2018-03-07 19:32:48 +01:00
parent a9c3be2d75
commit 8877f46771
2 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class MarketPlace extends this.OS.GUI.BaseApplication
($ @container).css "visibility", "visible"
( $ @appname ).html d.name
($ @appdesc).html d.description if d.description
($ @appdesc).prepend ($ "<img/>").attr("src", d.screenshot) if d.screenshot
if @systemsetting.system.packages[d.className]
($ @btinstall).hide()

View File

@ -37,6 +37,10 @@ afx-app-window[data-id="marketplace-win"] p[data-id='app-desc'] {
padding:10px;
padding-top: 0;
}
afx-app-window[data-id="marketplace-win"] p[data-id='app-desc'] img{
display: block;
margin-bottom: 10px;
}
afx-app-window[data-id="marketplace-win"] ul[data-id='app-detail'] {
padding:0;
padding-left:10px;