summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-21 11:24:51 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-21 11:24:51 +0200
commita8a35fdf86b8b6f408e972892483907306f088bb (patch)
tree352fa92e00adec47f12f994511b8ba49f97fd7f8
parent3c1687f5a53fccec24d378a16be41ea854affec8 (diff)
downloadkube-a8a35fdf86b8b6f408e972892483907306f088bb.tar.gz
kube-a8a35fdf86b8b6f408e972892483907306f088bb.zip
Wrap and elide the event description as necessary
-rw-r--r--views/calendar/main.qml4
-rw-r--r--views/calendar/qml/WeekView.qml4
2 files changed, 5 insertions, 3 deletions
diff --git a/views/calendar/main.qml b/views/calendar/main.qml
index 11eff6c8..08fd3e05 100644
--- a/views/calendar/main.qml
+++ b/views/calendar/main.qml
@@ -53,10 +53,10 @@ ApplicationWindow {
53 events: [ 53 events: [
54 { 54 {
55 resource: "caldavresource", 55 resource: "caldavresource",
56 summary: "Test Event1", 56 summary: "Test Event1 with a waaaaaaaay to long summary. Why don't you just use the description you fool!",
57 description: "This is test event #1", 57 description: "This is test event #1",
58 starts: "2018-04-10T14:03:00", 58 starts: "2018-04-10T14:03:00",
59 ends: "2018-04-10T17:03:00", 59 ends: "2018-04-10T16:03:00",
60 }, 60 },
61 { 61 {
62 resource: "caldavresource", 62 resource: "caldavresource",
diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml
index 80e41bea..7791795c 100644
--- a/views/calendar/qml/WeekView.qml
+++ b/views/calendar/qml/WeekView.qml
@@ -309,11 +309,13 @@ FocusScope {
309 309
310 Kube.Label { 310 Kube.Label {
311 anchors { 311 anchors {
312 left: parent.left 312 fill: parent
313 leftMargin: Kube.Units.smallSpacing 313 leftMargin: Kube.Units.smallSpacing
314 } 314 }
315 text: model.modelData.text 315 text: model.modelData.text
316 color: Kube.Colors.highlightedTextColor 316 color: Kube.Colors.highlightedTextColor
317 wrapMode: Text.Wrap
318 elide: Text.ElideRight
317 } 319 }
318 320
319 Drag.active: mouseArea.drag.active 321 Drag.active: mouseArea.drag.active