Style tweak for episode view dialog

This commit is contained in:
Duncan Sommerville 2015-11-16 18:25:10 -05:00
parent be7c60253b
commit 62a3251fb4
2 changed files with 9 additions and 1 deletions

View File

@ -4156,8 +4156,10 @@ li .ui-state-hover {
display: block;
}
#podcast_episode_dialog {
.podcast-episode-dialog {
max-width: 50%;
max-height: 50%;
overflow: auto;
}
/* UI Revamp Video */

View File

@ -1327,6 +1327,12 @@ var AIRTIME = (function(AIRTIME) {
height: "auto",
modal: true,
resizable: false,
dialogClass: "podcast-episode-dialog",
open: function () {
// Sometimes the dialog scrolls down partway if there are elements that need to render,
// like images or video, so scroll it back up on open.
$(this).parent().scrollTop(0);
},
close: function() {
$(this).dialog('destroy').remove();
}