Besteht die Möglichkeit eine oder mehrere Spalten in einer readingsGroup schmaler zu machen? Ich habe jetzt alles versucht, komme aber nicht weiter.
Meine readingsGroup sieht wie folgt aus:
defmod rg_Abfall readingsGroup ABFALL_LEERUNG:Restmuell_weekday,Restmuell_date,<%dustbin@red>,Restmuell_days,Restmuell_daysnext,Restmuell_text\
ABFALL_LEERUNG:Rund_weekday,Rund_date,<%dustbin@green>,Rund_days,Rund_daysnext,Rund_text\
ABFALL_LEERUNG:Flach_weekday,Flach_date,<%dustbin@limegreen>,Flach_days,Flach_daysnext,Flach_text\
ABFALL_LEERUNG:Biogut_weekday,Biogut_date,<%dustbin@yellow>,Biogut_days,Biogut_daysnext,Biogut_text\
attr rg_Abfall nonames 1
attr rg_Abfall room KALENDER
attr rg_Abfall valueColumns {\
'r:1,c:3' => 'colspan="3"',\
'r:2,c:3' => 'colspan="3"',\
'r:3,c:3' => 'colspan="3"',\
'r:4,c:3' => 'colspan="3"'\
}
attr rg_Abfall valueStyle {\
my $bcolor = 'white';;\
\
if ('1' eq $VALUE)\
{\
$bcolor = 'red';;\
}\
elsif ('2' eq $VALUE)\
{\
$bcolor = 'orange';;\
}\
else\
{ \
$bcolor = 'green';;\
}\
\
if ($READING =~ /_days$/)\
{\
'style="width:16px;;height:16px;;border-radius:8px;;background-color:'.$bcolor.';;font-size:10px;;font-weight:600;;text-align:center;;position:relative;;left:-29px;;top:-10px;;"';;\
}\
elsif ($READING =~ /_daysnext$/)\
{\
'style="width:16px;;height:16px;;border-radius:8px;;background-color:'.$bcolor.';;font-size:10px;;font-weight:600;;text-align:center;;position:relative;;left:-48px;;top:-10px;;"';;\
}\
}
Ich möchte den Abstand z.B. zwischen Restmüll und den zwei Punkten verkleinern. Das Attribut valueColumns hat übrigens keinerlei Auswirkungen auf das Aussehen.