Read the statement by Michael Teeuw here.
Title of two modules in one line
-
-
@wishmaster270 I did change it the way you suggested, but it wont change anything unfortunately.
-
@codac Hi,
i setup a quick dev environment to test the possibilities. You are right. Please keep thealign-items
option set toflex-start
.There are different ways to move the warnings to the right. Depending what you want it to be you can either set:
1: Reduce the module width
.MMM-DWD-WarnWeather .wrapper { width: 280px; }
Which will look like
Screenshot 1
2: Only the description to the right
.MMM-DWD-WarnWeather .description { width: 100%; text-align: right; }
Which will look like
Screenshot 2
3: Or you can move the warnings totally to the right
.MMM-DWD-WarnWeather .warning { justify-content:flex-end; }
Which looks like
Screenshot 3
-
@wishmaster270 I prefer the third version. I’ve tried a couple of combinations but none of them led to the requested result.
What am I missing?From my understanding I would suggest this CSS code (which doesnt work this way):
.MMM-DWD-WarnWeather .wrapper { display: flex; flex-direction: column; align-items: flex-start; width: 320px; gap: 5px; } .MMM-DWD-WarnWeather .warning { justify-content:flex-end; } .MMM-DWD-WarnWeather .status { margin-top: 0px; } .MMM-DWD-WarnWeather .description { padding-left: 0px; margin-left: 0px; } .MMM-DWD-WarnWeather .small-icon{ float: unset; zoom: unset; -moz-transform: unset; -moz-transform-origin: unset; width: 46px; height: 46px; position: relative; }
-
Hi,
sorry for my unprecise description. I meant adding the the
justify-content: flex-end;
additionally. The whole CSS settings need to look like the following:.MMM-DWD-WarnWeather .wrapper { display: flex; flex-direction: column; align-items: flex-start; width: 320px; gap: 5px; } .MMM-DWD-WarnWeather .warning { width: 100%; display: flex; flex-direction: row; gap: 10px; margin-bottom: 0px; justify-content: flex-end; } .MMM-DWD-WarnWeather .status { width: 100%; text-align: right; margin-top: 0px; } .MMM-DWD-WarnWeather .description { padding-left: 0px; margin-left: 0px; } .MMM-DWD-WarnWeather .small-icon{ float: unset; zoom: unset; -moz-transform: unset; -moz-transform-origin: unset; width: 46px; height: 46px; position: relative; }