mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduce image indicator sizes
This commit is contained in:
parent
7743b36bc9
commit
bcb4b9da33
11 changed files with 46 additions and 28 deletions
15
ApiClient.js
15
ApiClient.js
|
@ -456,6 +456,21 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
});
|
||||
};
|
||||
|
||||
self.getLiveTvRecordingGroup = function (id) {
|
||||
|
||||
if (!id) {
|
||||
throw new Error("null id");
|
||||
}
|
||||
|
||||
var url = self.getUrl("LiveTv/Recordings/Groups/" + id);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.getLiveTvRecording = function (id, userId) {
|
||||
|
||||
if (!id) {
|
||||
|
|
|
@ -408,7 +408,7 @@ h1 .imageLink {
|
|||
|
||||
@media all and (min-width: 900px) {
|
||||
|
||||
.page:not(.wizardPage) .header {
|
||||
.page:not(.standalonePage) .header {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
}
|
||||
|
||||
.tileName {
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
</td>
|
||||
<td style="vertical-align: top; padding: 0;">
|
||||
<p><span class="itemName inlineItemName"></span><span class="itemMiscInfo" style="display: inline;"></span></p>
|
||||
<p class="itemChannelNumber"></p>
|
||||
<p style="margin: 2em 0;">
|
||||
<span class="userDataIcons"></span>
|
||||
</p>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<a href="livetvseriestimers.html">Series</a>
|
||||
</div>
|
||||
<div data-role="content">
|
||||
<h1 class="listName" style="text-align: center;"></h1>
|
||||
<div class="viewSettings">
|
||||
<div class="viewControls">
|
||||
</div>
|
||||
|
|
|
@ -522,16 +522,18 @@
|
|||
|
||||
function renderChildren(page, item, user) {
|
||||
|
||||
var sortBy = item.Type == "BoxSet" ? "ProductionYear,SortName" : "SortName";
|
||||
|
||||
var fields = "ItemCounts,DateCreated,AudioInfo,PrimaryImageAspectRatio";
|
||||
|
||||
var query = {
|
||||
ParentId: item.Id,
|
||||
SortBy: sortBy,
|
||||
Fields: fields
|
||||
};
|
||||
|
||||
// Let the server pre-sort boxsets
|
||||
if (item.Type !== "BoxSet") {
|
||||
query.SortBy = "SortName";
|
||||
}
|
||||
|
||||
var promise;
|
||||
|
||||
if (item.Type == "Series") {
|
||||
|
|
|
@ -3,14 +3,6 @@
|
|||
var currentItem;
|
||||
var programs;
|
||||
|
||||
function cancelRecording(page, id) {
|
||||
|
||||
}
|
||||
|
||||
function scheduleRecording(page, id) {
|
||||
|
||||
}
|
||||
|
||||
function renderPrograms(page, result) {
|
||||
|
||||
var html = '';
|
||||
|
@ -136,8 +128,7 @@
|
|||
|
||||
Dashboard.setPageTitle(name);
|
||||
|
||||
$('.itemName', page).html(name);
|
||||
$('.itemChannelNumber', page).html(item.Number);
|
||||
$('.itemName', page).html(item.Number + ' ' + name);
|
||||
|
||||
$('.userDataIcons', page).html(LibraryBrowser.getUserDataIconsHtml(item));
|
||||
|
||||
|
|
|
@ -33,9 +33,7 @@
|
|||
|
||||
html += '<div class="tileContent">';
|
||||
|
||||
html += '<div class="tileName">' + channel.Name + '</div>';
|
||||
|
||||
html += '<p class="itemMiscInfo">' + channel.Number + '</p>';
|
||||
html += '<div class="tileName">' + channel.Number + ' ' + channel.Name + '</div>';
|
||||
|
||||
html += '<p class="userDataIcons">' + LibraryBrowser.getUserDataIconsHtml(channel) + '</p>';
|
||||
|
||||
|
|
|
@ -77,6 +77,8 @@
|
|||
|
||||
}).on('pagebeforeshow', "#liveTvRecordingListPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
var limit = LibraryBrowser.getDefaultPageSize();
|
||||
|
||||
// If the default page size has changed, the start index will have to be reset
|
||||
|
@ -92,7 +94,17 @@
|
|||
query.GroupId = groupId;
|
||||
}
|
||||
|
||||
reloadItems(this);
|
||||
reloadItems(page);
|
||||
|
||||
if (query.GroupId) {
|
||||
|
||||
ApiClient.getLiveTvRecordingGroup(query.GroupId).done(function (group) {
|
||||
$('.listName', page).show().html(group.Name);
|
||||
});
|
||||
|
||||
} else {
|
||||
$('.listName', page).hide();
|
||||
}
|
||||
|
||||
}).on('pageshow', "#liveTvRecordingListPage", function () {
|
||||
|
||||
|
|
|
@ -135,9 +135,9 @@
|
|||
html += '<div class="posterItemImage" style="background-color:' + background + ';"></div>';
|
||||
}
|
||||
|
||||
html += '<div class="posterItemText">' + user.Name + '</div>';
|
||||
html += '<div class="posterItemText" style="color:#000;">' + user.Name + '</div>';
|
||||
|
||||
html += '<div class="posterItemText">';
|
||||
html += '<div class="posterItemText" style="color:#000;">';
|
||||
var lastSeen = LoginPage.getLastSeenText(user.LastActivityDate);
|
||||
if (lastSeen != "") {
|
||||
html += lastSeen;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.216" targetFramework="net45" />
|
||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.217" targetFramework="net45" />
|
||||
</packages>
|
Loading…
Add table
Add a link
Reference in a new issue