- fixed styling issues on teacher sub plan
This commit is contained in:
parent
4e073152e4
commit
ccc962505d
1 changed files with 8 additions and 7 deletions
|
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue