diff --git a/gui/main-kf5.qml b/gui/main-kf5.qml index cbbf622..de684da 100644 --- a/gui/main-kf5.qml +++ b/gui/main-kf5.qml @@ -909,7 +909,7 @@ ApplicationWindow { if (chat) { paneModel.rawText = chat.text chatOffset = chat.offset - paneModel.setReactions(dbus.getReactions(sessionId)) + } var cfg = dbus.getConfig(sessionId) if (cfg && cfg.cwd) paneCwd = cfg.cwd @@ -940,13 +940,11 @@ ApplicationWindow { if (offset === paneRoot.chatOffset) { paneRoot.paneModel.rawText = paneRoot.paneModel.rawText + text paneRoot.chatOffset += text.length - paneRoot.paneModel.setReactions(dbus.getReactions(paneRoot.sessionId)) } else { var chat = dbus.getChat(paneRoot.sessionId, 0) if (chat) { paneRoot.paneModel.rawText = chat.text paneRoot.chatOffset = chat.offset - paneRoot.paneModel.setReactions(dbus.getReactions(paneRoot.sessionId)) } } } @@ -1151,7 +1149,6 @@ ApplicationWindow { delegate: Loader { width: paneColumn.width property var block: model - property string blockReaction: model.reaction || "" sourceComponent: { switch (blockType) { case "user": return userDelegate @@ -1539,47 +1536,7 @@ ApplicationWindow { Behavior on opacity { NumberAnimation { duration: 150 } } } - // Reaction badge (pinned when reacted) - Label { - anchors.bottom: parent.bottom - anchors.right: parent.right - anchors.margins: 4 - z: 10 - text: blockReaction - font.pixelSize: 18 - visible: blockReaction !== "" - } - // Reaction buttons (hover only, hidden when already reacted) - Row { - anchors.bottom: parent.bottom - anchors.right: parent.right - anchors.rightMargin: blockReaction !== "" ? 36 : 4 - anchors.margins: 4 - z: 10 - spacing: 2 - opacity: (assistantHover.hovered && blockReaction === "") ? 0.9 : 0 - Behavior on opacity { NumberAnimation { duration: 150 } } - - Repeater { - model: [ - { emoji: "\uD83D\uDC4D", tip: "Good" }, - { emoji: "\uD83D\uDC4E", tip: "Bad" }, - { emoji: "\uD83D\uDE80", tip: "Excellent" }, - { emoji: "\uD83D\uDCA9", tip: "Very bad" }, - { emoji: "\uD83E\uDD14", tip: "Confused" } - ] - ToolButton { - text: modelData.emoji - font.pixelSize: 14 - implicitWidth: 28 - implicitHeight: 28 - onClicked: { dbus.reactTo(paneRoot.sessionId, block.responseId, modelData.emoji); paneRoot.paneModel.setReactions(dbus.getReactions(paneRoot.sessionId)) } - ToolTip.text: modelData.tip - ToolTip.visible: hovered - } - } - } ColumnLayout { id: assistantContent