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]);
break;
case "cdm_auto_catchup":
if (params[k] == 1) {
const hl = App.byId("headlines-frame");
if (hl) hl.addClassName("auto_catchup");
}
App.byId("headlines-frame").setAttribute("data-auto-catchup", params[k] ? "true" : "false");
break;
case "hotkeys":
// filter mnemonic definitions (used for help panel) from hotkeys map

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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