start initial work on detaching chat to floating window

This commit is contained in:
2026-08-20 20:24:54 +02:00
parent 9657e5092a
commit 37c6a9986e
9 changed files with 190 additions and 29 deletions
@@ -11,7 +11,7 @@ import qs.Services
Item {
id: root
required property ChatSession chatData
property ChatSession chatData
property bool following: true
readonly property int messageCount: chatData.messages.length
@@ -257,7 +257,7 @@ Item {
anchors.fill: parent
spacing: Tokens.spacing.small
visible: root.messageCount === 0 && !Chat.busy
visible: (root.messageCount === 0 && !Chat.busy) || !root.chatData
Item {
Layout.fillHeight: true
@@ -273,7 +273,7 @@ Item {
CustomText {
Layout.alignment: Qt.AlignHCenter
color: Colors.tPalette.m3onSurfaceVariant
text: qsTr("No messages yet")
text: !root.chatData ? qsTr("Open a previous chat or start a new one") : qsTr("No messages yet")
}
Item {