stickypad: remove redundant stuff, make clickable text area larger

This commit is contained in:
end-4
2025-11-14 11:18:31 +01:00
parent 8404817e51
commit 5bec659486
@@ -136,11 +136,8 @@ OverlayBackground {
ColumnLayout { ColumnLayout {
id: stickypadLayout id: stickypadLayout
anchors { anchors.fill: parent
fill: parent spacing: 0
margins: 16
}
spacing: 10
ScrollView { ScrollView {
id: editorScrollView id: editorScrollView
@@ -162,11 +159,8 @@ OverlayBackground {
persistentSelection: true persistentSelection: true
textFormat: TextEdit.PlainText textFormat: TextEdit.PlainText
background: null background: null
rightPadding: 44 padding: 16
// Disable text area when clickthrough enabled - START rightPadding: 44 + padding
enabled: GlobalStates.overlayOpen || !root.isClickthrough
activeFocusOnTab: GlobalStates.overlayOpen || !root.isClickthrough
// Disable text area when clickthrough enabled - END
onTextChanged: { onTextChanged: {
if (stickypadInput.activeFocus) { if (stickypadInput.activeFocus) {
@@ -263,6 +257,7 @@ OverlayBackground {
StyledText { StyledText {
id: statusLabel id: statusLabel
Layout.fillWidth: true Layout.fillWidth: true
Layout.margins: 16
horizontalAlignment: Text.AlignRight horizontalAlignment: Text.AlignRight
text: saveDebounce.running ? Translation.tr("Saving...") : Translation.tr("Saved ") text: saveDebounce.running ? Translation.tr("Saving...") : Translation.tr("Saved ")
color: Appearance.colors.colSubtext color: Appearance.colors.colSubtext