Make svgs more fluid and consistent remove action, instead of 'remove app'

Signed-off-by: Felix A. Epp <work@felixepp.de>
This commit is contained in:
Felix A. Epp 2017-04-05 22:12:49 +02:00 committed by Jan-Christoph Borchardt
parent a04413fd75
commit 47d9bffc53
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
imageUrl : function (url, appfromstore) {
var img;
if (appfromstore) {
img = '<svg width="250" height="250" viewBox="0 0 72 72">';
img = '<svg viewBox="0 0 72 72">';
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>';
} else {
img = '<svg width="32" height="32" viewBox="0 0 32 32">';

View File

@ -178,7 +178,7 @@ script(
<input class="enable{{#if needsDownload}} needs-download{{/if}}" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable"));?>"/>
{{/if}}
{{#if canUnInstall}}
<input class="uninstall" type="submit" value="<?php p($l->t('Remove app')); ?>" data-appid="{{id}}" />
<input class="uninstall" type="submit" value="<?php p($l->t('Remove')); ?>" data-appid="{{id}}" />
{{/if}}
<div class="warning hidden"></div>