forked from Shinonome/dots-hyprland
fix weird notes text area sizing
This commit is contained in:
@@ -136,6 +136,9 @@ OverlayBackground {
|
|||||||
root.copyListEntries = entries;
|
root.copyListEntries = entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
implicitWidth: 300
|
||||||
|
implicitHeight: 200
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: contentItem
|
id: contentItem
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -161,8 +164,7 @@ OverlayBackground {
|
|||||||
persistentSelection: true
|
persistentSelection: true
|
||||||
textFormat: TextEdit.PlainText
|
textFormat: TextEdit.PlainText
|
||||||
background: null
|
background: null
|
||||||
padding: 16
|
padding: 24
|
||||||
rightPadding: root.maxCopyButtonSize + padding
|
|
||||||
|
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
if (textInput.activeFocus) {
|
if (textInput.activeFocus) {
|
||||||
@@ -179,7 +181,7 @@ OverlayBackground {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: textInput
|
anchors.fill: parent
|
||||||
visible: root.copyListEntries.length > 0
|
visible: root.copyListEntries.length > 0
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
@@ -200,7 +202,7 @@ OverlayBackground {
|
|||||||
buttonRadius: height / 2
|
buttonRadius: height / 2
|
||||||
y: modelData.y
|
y: modelData.y
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 16
|
anchors.rightMargin: 10
|
||||||
z: 5
|
z: 5
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
|
|||||||
Reference in New Issue
Block a user