- fixed styling issues on teacher sub plan

This commit is contained in:
Dorian Zedler 2019-12-08 11:31:57 +01:00
parent 4e073152e4
commit ccc962505d

View file

@ -163,12 +163,13 @@ Page {
// label for the hour, replacement, subject and room // label for the hour, replacement, subject and room
width: parent.width - 10 width: parent.width - 10
height: text === "" ? 0:undefined
wrapMode: Label.Wrap wrapMode: Label.Wrap
text: hour + ( replace === "" ? "": ( " | " text: hour +
+ replace + ( subject === "" ? "": ( " | " (replace === "" ? "": ( " | "+ replace )) +
+ subject + ( room === "" ? "": ( " | " ( subject === "" ? "": ( " | " + subject )) +
+ room ) ) ) ) ) ) ( room === "" ? "": ( " | " + room ))
} }
Label { Label {
@ -176,14 +177,14 @@ Page {
// label for the new room (to) and the additional text (text) // label for the new room (to) and the additional text (text)
width: parent.width - 10 width: parent.width - 10
height: text === "" ? 0:undefined
wrapMode: Label.Wrap wrapMode: Label.Wrap
font.pixelSize: gradeLa.font.pixelSize font.pixelSize: gradeLa.font.pixelSize
font.bold: true font.bold: true
visible: text !== "" text: to +
(model.text === " | " || model.text === "" ? "": ( " | "+ model.text ))
text: to !== "" && model.text !== "" ? to + " | " + model.text:model.to + model.text
} }
} }
} }