SendBar: make overflowWidth bigger.

also fix initial state for rich text button
This commit is contained in:
Darshan Phaldesai
2026-02-25 15:07:36 -07:00
parent ce84562829
commit 63ddfb6cb8

View File

@@ -28,7 +28,7 @@ RowLayout {
required property real maxAvailableWidth
readonly property real overflowWidth: Kirigami.Units.gridUnit * 30
readonly property real overflowWidth: Kirigami.Units.gridUnit * 50
function openLocationChooser(): void {
Qt.createComponent('org.kde.neochat.chatbar', 'LocationChooser').createObject(QQC2.ApplicationWindow.overlay, {
@@ -194,9 +194,10 @@ RowLayout {
icon.name: "edit-select-text-symbolic"
text: i18nc("@action:button", "Rich Text")
display: QQC2.AbstractButton.IconOnly
onClicked: NeoChatConfig.sendMessageWith = checked
checkable: true
checked: NeoChatConfig.sendMessageWith === 1
onClicked: NeoChatConfig.sendMessageWith = checked
QQC2.ToolTip.visible: hovered
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
QQC2.ToolTip.text: text