Read the statement by Michael Teeuw here.
Changing Module Display Width
-
@johnnyboy maxWidth isn’t specified for the WunderGround module. So you can’t use the same config option there as you could with MMM-History.
Confusing I know, but most modules don’t use size settings in the config since it’s better to set that with css code.
Custom css-code is put in the file custom.css that can be found in the css folder.
-
Ah, ok… I was jumping ahead of myself there… so I will try
.MMM-WunderGround { width : 200px; }
200px; or whatever looks good.
Thanks again. -
I changed mines to 250px as that was about maxed out or else it would move the large Moon icon onto top bar and would become 1/3 of its original size and not look right, or look good… so I’m pretty happy at that.
However, I thought to do the same thing to the calendar that’s directly opposite, on the top right…to keep the aspect look… Nope! It wont budge for some reason?
Side effect now is a slight 5 - 7 second load time to WunderGround, Calendar, and News feed on bottom bar… No idea if this is linked or no?No effect at all on Compliments or SimpleLogo.
.Module_calendar {
width : 250px;
}No idea if this is relevant, but should I have included the calendar header Uk Holidays? My calendar is also linked to Google Calendar so no idea if that could be a reason either why it wont allow width to be adjusted, but thought to mention
-
@johnnyboy I think it should be just .calendar not .Module_calendar
-
@broberg
ok will try that now… Yes that did it… I didn’t know not to include .Module there… Thought they all had the same command, apart from MMM -
Hi,
I have my MM configured vertically and a lot of the calendar entries get cut off. I’m trying to widen the calendar.
This is what I’ve added to custom.css but I’m not seeing any change. (sorry, I’m not sure how to make the code show up in a special way the way others do)
body {
.MMM-calendar {
width : 350px;
}
}Can someone point me in the right direction in terms of what I’m doing wrong?
Thanks,
Nathan
-
.calendar { width : 350px; }
It’s not supposed to be inside the
body{}
and since it is a default/stock module it doesn’t use the MMM prefix like other modules does so the class name of the module is just.calendar
-
Thanks @broberg, that worked, I can see that changes I make are taking effect now.
I set the calendar to 450px. However, as you can see from this
picture, the date text just shifted over to the right and is now covering the weather forecast, rather than the text from the calendar entry expanding. What I’m trying to accomplish is to get the full calendar item text to show. Is there a way to do that?Thanks,
Nathan
-
@deadherring said in Changing Module Display Width:
Thanks,
NathanReadjust it to a number that works to get it away from the weather… you have it at 450, try 400.
-
@deadherring add
maxTitleLength : 50,
in the calendar config, default is set to 25