diff --git a/kde/gui/ChatBlockDelegate.qml b/kde/gui/ChatBlockDelegate.qml index e694be1..ab46341 100644 --- a/kde/gui/ChatBlockDelegate.qml +++ b/kde/gui/ChatBlockDelegate.qml @@ -33,7 +33,7 @@ Column { } // Show action buttons on hover - property bool hovered: headerArea.containsMouse || contentArea.containsMouse + property bool hovered: headerArea.containsMouse // Header color based on block type and theme function headerColor() { @@ -171,12 +171,11 @@ Column { implicitHeight: 22 visible: blockType === "user" ToolTip.visible: hovered - ToolTip.text: "Edit & Resend" + ToolTip.text: "Copy to input for editing" onClicked: { var content = getBlockPlainText() - // Find the prompt input and set its text - // This requires the parent ChatPane to expose the input - chatPane.setPromptText(content) + // Copy to clipboard - user can paste into input + if (content) clipboard.copyText(content) } } } @@ -190,14 +189,6 @@ Column { visible: root.blockExpanded spacing: 4 - MouseArea { - id: contentArea - anchors.fill: parent - hoverEnabled: true - propagateComposedEvents: true - acceptedButtons: Qt.NoButton - } - // Fast path: single TextEdit for the concatenated HTML. // Diagrams are handled separately via the segments list. TextEdit { diff --git a/kde/gui/ChatPane.qml b/kde/gui/ChatPane.qml index bf32c80..3598631 100644 --- a/kde/gui/ChatPane.qml +++ b/kde/gui/ChatPane.qml @@ -150,8 +150,6 @@ Item { delegate: ChatBlockDelegate { width: chatView.width - 8 - // Pass reference to chatPane for Edit & Resend - property var chatPane: chatPane } }