mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Show calendar title above buttons on small screens (phones)
This commit is contained in:
parent
4ad28bb6f6
commit
1586743df2
2 changed files with 21 additions and 0 deletions
|
@ -33,6 +33,18 @@ define(
|
|||
},
|
||||
|
||||
_viewRender: function (view) {
|
||||
|
||||
if ($(window).width() < 768) {
|
||||
this.$('.fc-header-title').show();
|
||||
this.$('.calendar-title').remove();
|
||||
|
||||
var title = this.$('.fc-header-title').text();
|
||||
var titleDiv = '<div class="calendar-title"><h2>{0}</h2></div>'.format(title);
|
||||
|
||||
this.$('.fc-header').before(titleDiv);
|
||||
this.$('.fc-header-title').hide();
|
||||
}
|
||||
|
||||
if (Config.getValue(this.storageKey) !== view.name) {
|
||||
Config.setValue(this.storageKey, view.name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue