diff options
Diffstat (limited to 'desktop/assistant/Card.qml')
| -rw-r--r-- | desktop/assistant/Card.qml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/desktop/assistant/Card.qml b/desktop/assistant/Card.qml index 477f430..228cfdb 100644 --- a/desktop/assistant/Card.qml +++ b/desktop/assistant/Card.qml @@ -244,7 +244,10 @@ Rectangle { height: box.height text: "" font.family: Theme.iconFamily - onClicked: card.canvas.pickerOpen = !card.canvas.pickerOpen + onClicked: { + card.canvas.historyOpen = false; + card.canvas.pickerOpen = !card.canvas.pickerOpen; + } } Rectangle { @@ -298,7 +301,8 @@ Rectangle { anchors { left: parent.left; right: parent.right; top: parent.top; margins: 8 } visible: input.text === "" elide: Text.ElideRight - text: card.mode === "entry" ? "How can I help you?" + text: !card.canvas.connected ? "assistant not running" + : card.mode === "entry" ? "How can I help you?" : card.canvas.staged.length ? `Ask about ${card.canvas.staged[0].name}…` : "Message the assistant" color: Theme.overlay @@ -332,12 +336,13 @@ Rectangle { } } - // --- panels, over everything above the input --- + // --- panels, over the transcript (under the header in chat) --- Item { id: panelArea anchors { - top: parent.top; topMargin: 14; bottom: chips.visible ? chips.top : footer.top + top: header.visible ? header.bottom : parent.top; topMargin: header.visible ? 8 : 14 + bottom: chips.visible ? chips.top : footer.top bottomMargin: 8; left: parent.left; right: parent.right; leftMargin: 14; rightMargin: 14 } |
