1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:45:56 +00:00

floatingTitle: show collapse button if in expandable mode

This commit is contained in:
Andrew Dolgov
2019-02-14 16:20:10 +03:00
parent 510f99fa25
commit 848bb6579c
8 changed files with 58 additions and 19 deletions

View File

@@ -556,6 +556,9 @@ define(["dojo/_base/declare"], function (declare) {
if (!append) {
// TODO: the below needs to be applied again when switching expanded/expandable on the fly
// via hotkeys, not just on feed load
$("headlines-frame").removeClassName("cdm");
$("headlines-frame").removeClassName("normal");
@@ -564,6 +567,13 @@ define(["dojo/_base/declare"], function (declare) {
$("headlines-frame").setAttribute("is-vfeed",
reply['headlines']['is_vfeed'] ? 1 : 0);
// for floating title because it's placed outside of headlines-frame
$("main").removeClassName("expandable");
$("main").removeClassName("expanded");
if (App.isCombinedMode())
$("main").addClassName(App.getInitParam("cdm_expanded") ? " expanded" : " expandable");
Article.setActive(0);
try {