headlines-spacer: only set 100% height if auto catchup is enabled

This commit is contained in:
Andrew Dolgov 2018-12-09 16:02:20 +03:00
parent 42780ddeb3
commit 5e007e0090
6 changed files with 16 additions and 5 deletions

View File

@ -819,8 +819,10 @@ body.ttrss_main .player:hover {
background: #f5f5f5;
cursor: pointer;
}
body.ttrss_main #headlines-spacer {
body.ttrss_main #headlines-frame.auto_catchup #headlines-spacer {
height: 100%;
}
body.ttrss_main #headlines-spacer {
margin-left: 1px;
text-align: center;
color: #555555;

File diff suppressed because one or more lines are too long

View File

@ -962,8 +962,11 @@ body.ttrss_main {
cursor : pointer;
}
#headlines-spacer {
#headlines-frame.auto_catchup #headlines-spacer {
height : 100%;
}
#headlines-spacer {
margin-left : 1px;
text-align : center;
color : @default-text;

View File

@ -317,6 +317,10 @@ define(["dojo/_base/declare"], function (declare) {
case "label_base_index":
_label_base_index = parseInt(params[k]);
break;
case "cdm_auto_catchup":
if (params[k] == 1)
$("headlines-frame").addClassName("auto_catchup");
break;
case "hotkeys":
// filter mnemonic definitions (used for help panel) from hotkeys map
// i.e. *(191)|Ctrl-/ -> *(191)

View File

@ -819,8 +819,10 @@ body.ttrss_main .player:hover {
background: #222222;
cursor: pointer;
}
body.ttrss_main #headlines-spacer {
body.ttrss_main #headlines-frame.auto_catchup #headlines-spacer {
height: 100%;
}
body.ttrss_main #headlines-spacer {
margin-left: 1px;
text-align: center;
color: #cccccc;

File diff suppressed because one or more lines are too long