mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
enable additional css containment
This commit is contained in:
parent
ee96fa577b
commit
e6d3222572
11 changed files with 32 additions and 70 deletions
|
@ -1,32 +0,0 @@
|
|||
define(['iron-list', 'lazyload-image'], function () {
|
||||
|
||||
function getTemplate(scrollTarget) {
|
||||
|
||||
var maxPhysical = 200;
|
||||
|
||||
// is="lazyload-image"
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'components/ironcardlist/ironcardlist.template.html', true);
|
||||
|
||||
xhr.onload = function (e) {
|
||||
|
||||
var html = this.response;
|
||||
|
||||
html = html.replace('${maxphysical}', maxPhysical);
|
||||
html = html.replace('${scrolltarget}', scrollTarget);
|
||||
|
||||
resolve(html);
|
||||
}
|
||||
|
||||
xhr.send();
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
getTemplate: getTemplate
|
||||
};
|
||||
|
||||
});
|
|
@ -1,18 +0,0 @@
|
|||
<template is="dom-bind">
|
||||
<iron-list as="item" id="ironList" scroll-target="${scrolltarget}" max-physical-count="${maxphysical}" style="width:96%;" grid>
|
||||
<template>
|
||||
<div class$="{{item.elemClass}}" data-action$="{{item.defaultAction}}" data-itemid$="{{item.data-itemid}}" data-commands$="{{item.data-commands}}" data-context$="{{item.data-context}}" data-isfolder$="{{item.data-isfolder}}" data-itemtype$="{{item.data-itemtype}}" data-mediatype$="{{item.data-mediatype}}" data-positionticks$="{{item.data-positionticks}}" data-playaccess$="{{item.data-playaccess}}" data-locationtype$="{{item.data-locationtype}}" data-index$="{{item.data-index}}" data-albumid$="{{item.data-albumid}}" data-channelid$="{{item.data-channelid}}" data-artistid$="{{item.data-artistid}}">
|
||||
<div class$="{{item.cardBoxClass}}">
|
||||
<div class="cardScalable">
|
||||
<div class="cardPadder"></div>
|
||||
<a onclick$="{{item.onclick}}" data-action$="{{item.defaultAction}}" class$="{{item.anchorClass}}" href$="{{item.href}}">
|
||||
<img is="lazyload-image" class$="{{item.imageClass}}" src$="{{item.imgUrl}}" />
|
||||
<div inner-h-t-m-l="{{item.overlayHtml}}"></div>
|
||||
</a>
|
||||
</div>
|
||||
<div inner-h-t-m-l="{{item.footerHtml}}"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</iron-list>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue