Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monthsVertical not working #11

Closed
clyra opened this issue May 22, 2021 · 2 comments
Closed

monthsVertical not working #11

clyra opened this issue May 22, 2021 · 2 comments
Assignees
Labels
Bug Something isn't working

Comments

@clyra
Copy link

clyra commented May 22, 2021

Hi,

Thanks for this mm plugin. But it seems that monthsVertical: false doesnt work and I still get the months on vertical. I'm using the config from examples but changing this option. My config:

{
  module: 'MMM-Multimonth',
  position: 'bottom_bar', // can be any of the postions
  config: { // Optional - will default to 3 months, with one previous and one next, vertical orientation. 
      startMonth: -1, // Define when you start from current month (negative is before current, zero is current, positive is in future) 
      monthCount: 3, //  How many months to display - If Month Count is 1, Calendar will show previous and next month dates in empty spots.  
      // See screenshots for examples of the following config items. 
      monthsVertical: false, // Whether to arrange the months vertically (true) or horizontally (false).
      repeatWeekdaysVertical: false, // Whether to repeat the week days in each month in vertical mode. Ignored in horizontal mode.
      weekNumbers: false, // Whether to display the week numbers in front of each week.
      highlightWeekend: false, // Highlight Saturday and Sunday
    }
},
@BKeyport
Copy link
Owner

Temporary fix:

in CUSTOM.CSS

.MMM-Multimonth .calendar-vertical {
	flex-direction: column;
}
.MMM-Multimonth .calendar-horizontal {
	flex-direction: row;
}

I'm researching if I can get it to work like it used to. Seems some changes to css has occurred to make the old CSS fail.

@BKeyport BKeyport self-assigned this May 22, 2021
@BKeyport BKeyport added the Bug Something isn't working label May 22, 2021
@BKeyport
Copy link
Owner

Actually, it appears it's working like it used to with the change. I'm closing this, please update your module if you don't want to make the changes in custom.css - it's updated and ready to pull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants