Skip to content

Commit

Permalink
Merge pull request nextcloud#937 from nextcloud/fix_app_search
Browse files Browse the repository at this point in the history
SVG defintions always take the first one
  • Loading branch information
rullzer committed Aug 18, 2016
2 parents cc2071d + 37f4cb2 commit 7d4d73d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion settings/js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ OC.Settings.Apps = OC.Settings.Apps || {
if (appfromstore) {
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '?v=' + oc_config.version + '" class="app-icon" /></svg>';
} else {
img += '<defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>';
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invertIcon)" xlink:href="' + url + '?v=' + oc_config.version + '" class="app-icon"></image></svg>';
}
return img;
Expand Down
3 changes: 3 additions & 0 deletions settings/templates/apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@
</div>
</div>
<div id="app-content">
<svg height="0">
<defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
</svg>
<div id="apps-list" class="icon-loading"></div>
<div id="apps-list-empty" class="hidden emptycontent emptycontent-search">
<div class="icon-search"></div>
Expand Down

0 comments on commit 7d4d73d

Please sign in to comment.