remove scroll-to-bottom button
This commit is contained in:
parent
b77667fbfb
commit
bdad2b740f
34
gui/main.qml
34
gui/main.qml
|
|
@ -1224,9 +1224,6 @@ ApplicationWindow {
|
|||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
ScrollView {
|
||||
anchors.fill: parent
|
||||
clip: true
|
||||
|
||||
// Placeholder when no agent selected or disconnected
|
||||
|
|
@ -1590,38 +1587,7 @@ property bool blockExpanded: {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Scroll-to-bottom floating button
|
||||
Rectangle {
|
||||
id: scrollToBottomBtn
|
||||
width: 40
|
||||
height: 40
|
||||
radius: 20
|
||||
color: theme.highlightColor
|
||||
opacity: 0.9
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.margins: 16
|
||||
visible: !chatView.shouldAutoScroll && chatView.count > 0 && chatView.visible
|
||||
|
||||
Label {
|
||||
anchors.centerIn: parent
|
||||
text: "↓"
|
||||
font.pixelSize: 20
|
||||
font.bold: true
|
||||
color: theme.highlightedTextColor
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
chatView.shouldAutoScroll = true
|
||||
chatView.positionViewAtEnd()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle { Layout.fillWidth: true; height: 1; color: theme.midColor }
|
||||
|
|
|
|||
Reference in New Issue