fix headlines-spacer height in grid mode

This commit is contained in:
Andrew Dolgov 2021-03-10 11:59:52 +03:00
parent df9c389cbf
commit bdc72e5b63
7 changed files with 13 additions and 16 deletions

View File

@ -514,10 +514,7 @@ const App = {
this.LABEL_BASE_INDEX = parseInt(params[k]); this.LABEL_BASE_INDEX = parseInt(params[k]);
break; break;
case "cdm_auto_catchup": case "cdm_auto_catchup":
if (params[k] == 1) { App.byId("headlines-frame").setAttribute("data-auto-catchup", params[k] ? "true" : "false");
const hl = App.byId("headlines-frame");
if (hl) hl.addClassName("auto_catchup");
}
break; break;
case "hotkeys": case "hotkeys":
// filter mnemonic definitions (used for help panel) from hotkeys map // filter mnemonic definitions (used for help panel) from hotkeys map

View File

@ -853,8 +853,8 @@ body.ttrss_main .player:hover {
background: #f5f5f5; background: #f5f5f5;
cursor: pointer; cursor: pointer;
} }
body.ttrss_main #headlines-frame.auto_catchup #headlines-spacer { body.ttrss_main #headlines-frame[data-auto-catchup="true"] #headlines-spacer {
height: 100%; height: 100vh;
} }
body.ttrss_main #headlines-spacer { body.ttrss_main #headlines-spacer {
margin-left: 1px; margin-left: 1px;

View File

@ -853,8 +853,8 @@ body.ttrss_main .player:hover {
background: #222; background: #222;
cursor: pointer; cursor: pointer;
} }
body.ttrss_main #headlines-frame.auto_catchup #headlines-spacer { body.ttrss_main #headlines-frame[data-auto-catchup="true"] #headlines-spacer {
height: 100%; height: 100vh;
} }
body.ttrss_main #headlines-spacer { body.ttrss_main #headlines-spacer {
margin-left: 1px; margin-left: 1px;

View File

@ -853,8 +853,8 @@ body.ttrss_main .player:hover {
background: #f5f5f5; background: #f5f5f5;
cursor: pointer; cursor: pointer;
} }
body.ttrss_main #headlines-frame.auto_catchup #headlines-spacer { body.ttrss_main #headlines-frame[data-auto-catchup="true"] #headlines-spacer {
height: 100%; height: 100vh;
} }
body.ttrss_main #headlines-spacer { body.ttrss_main #headlines-spacer {
margin-left: 1px; margin-left: 1px;

View File

@ -997,8 +997,8 @@ body.ttrss_main {
cursor : pointer; cursor : pointer;
} }
#headlines-frame.auto_catchup #headlines-spacer { #headlines-frame[data-auto-catchup="true"] #headlines-spacer {
height : 100%; height : 100vh;
} }
#headlines-spacer { #headlines-spacer {

View File

@ -854,8 +854,8 @@ body.ttrss_main .player:hover {
background: #222; background: #222;
cursor: pointer; cursor: pointer;
} }
body.ttrss_main #headlines-frame.auto_catchup #headlines-spacer { body.ttrss_main #headlines-frame[data-auto-catchup="true"] #headlines-spacer {
height: 100%; height: 100vh;
} }
body.ttrss_main #headlines-spacer { body.ttrss_main #headlines-spacer {
margin-left: 1px; margin-left: 1px;

View File

@ -854,8 +854,8 @@ body.ttrss_main .player:hover {
background: #222; background: #222;
cursor: pointer; cursor: pointer;
} }
body.ttrss_main #headlines-frame.auto_catchup #headlines-spacer { body.ttrss_main #headlines-frame[data-auto-catchup="true"] #headlines-spacer {
height: 100%; height: 100vh;
} }
body.ttrss_main #headlines-spacer { body.ttrss_main #headlines-spacer {
margin-left: 1px; margin-left: 1px;