WeatherCard: keep the name for long location name (split around the comma)
This commit is contained in:
parent
6f0b0b299f
commit
b7332cc2e0
1 changed files with 5 additions and 1 deletions
|
|
@ -35,7 +35,11 @@ NBox {
|
|||
ColumnLayout {
|
||||
spacing: -Style.marginTiny * scaling
|
||||
NText {
|
||||
text: Settings.data.location.name
|
||||
text: {
|
||||
// Ensure the name is not too long if one had to specify the country
|
||||
const chunks = Settings.data.location.name.split(",")
|
||||
return chunks[0]
|
||||
}
|
||||
font.weight: Style.fontWeightBold
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue