Skip to content

Commit

Permalink
fmt 2023-12 RC1a
Browse files Browse the repository at this point in the history
  • Loading branch information
pbberlin committed Nov 30, 2023
1 parent b07e573 commit 4eed4dc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
22 changes: 22 additions & 0 deletions app-bucket/templates/styles-quest-fmt.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,25 @@ dummy
background-color: lightgrey;
}

/*
chrome mobile browser
needlessly wraps the
right-aligned labels
into multiple line
for question 5
*/
@media screen and (max-width: 800px) {
.pg07 label[for=co2_brack_1],
.pg07 label[for=co2_brack_2],
.pg07 label[for=co2_brack_3],
.pg07 label[for=co2_brack_4],
.pg07 label[for=co2_brack_5],
.pg07 label[for=co2_brack_6],
.pg07 label[for=co2_brack_7],
.xxpg07 label[for=sum],
dummy {
text-wrap: nowrap;
}
}


16 changes: 11 additions & 5 deletions pkg/qst/funcs-page-fmt-202312.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func fmt202312(q *QuestionnaireT, page *pageT) error {
dass der durchschnittliche CO2-Preis im Jahr 2023 in dieser Spanne liegen wird:
<br>
<br>
<span style=font-size:90%%>Bitte beachten Sie, dass alle Wahrscheinlichkeiten in der Summe 100%% ergeben müssen.</span>
<span style=font-size:90%%>[Bitte beachten Sie, dass alle Wahrscheinlichkeiten in der Summe 100%% ergeben müssen.]</span>
`,
),
"en": fmt.Sprintf(`
Expand All @@ -209,7 +209,7 @@ func fmt202312(q *QuestionnaireT, page *pageT) error {
For each of the following price ranges, please indicate the probability that the average CO2 price in 2030 will be in that range:
<br>
<br>
<span style=font-size:90%%>Please keep in mind that all probabilities have to sum up to 100%%.</span>
<span style=font-size:90%%>[Please keep in mind that all probabilities have to sum up to 100%%.]</span>
`),
}.Outline("5.")

Expand Down Expand Up @@ -249,12 +249,13 @@ func fmt202312(q *QuestionnaireT, page *pageT) error {

inp.ColSpan = col1 + col2
inp.ColSpanLabel = col1
inp.ColSpanControl = col2
inp.ColSpanControl = 2

inp.Label = lbls[grIdx][i]
inp.Label.AppendStr(" &nbsp; ")
// inp.Label.AppendStr(" &nbsp; ")

inp.LabelRight()
inp.LabelPadRight()

inp.Suffix = trl.S{"de": "%", "en": "%"}
}
Expand Down Expand Up @@ -286,8 +287,13 @@ func fmt202312(q *QuestionnaireT, page *pageT) error {
inp.ColSpanControl = col2

inp.Label = trl.S{"de": "&#931;", "en": "&#931;"}
inp.Label.AppendStr(" &nbsp; ")
inp.Label = trl.S{
"de": `Summe der obigen Wahrscheinlichkeiten ist `,
"en": `Sum of the above probabilities `,
}
// inp.Label.AppendStr(" &nbsp; ")
inp.LabelRight()
inp.LabelPadRight()

inp.Suffix = trl.S{"de": "%", "en": "%"}

Expand Down

0 comments on commit 4eed4dc

Please sign in to comment.