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

add hotkey to toggle grid view

This commit is contained in:
Andrew Dolgov
2021-03-10 10:01:22 +03:00
parent 089fa5ec26
commit 0b93d8d013
4 changed files with 15 additions and 5 deletions

View File

@@ -383,10 +383,13 @@ const Headlines = {
return this.headlines[id];
},
setCommonClasses: function () {
App.byId("headlines-frame").removeClassName("cdm");
App.byId("headlines-frame").removeClassName("normal");
const container = App.byId("headlines-frame");
App.byId("headlines-frame").addClassName(App.isCombinedMode() ? "cdm" : "normal");
container.removeClassName("cdm");
container.removeClassName("normal");
container.addClassName(App.isCombinedMode() ? "cdm" : "normal");
container.setAttribute("data-enable-grid", App.getInitParam("cdm_enable_grid") ? "true" : "false");
// for floating title because it's placed outside of headlines-frame
App.byId("main").removeClassName("expandable");