mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-29 17:12:04 +00:00
WeatherCard: keep the name for long location name (split around the comma)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user