forked from Shinonome/dots-hyprland
stickypad: adjust spacing
This commit is contained in:
@@ -113,6 +113,7 @@ OverlayBackground {
|
|||||||
const rangeEnd = Math.max(selectionStart, selectionEnd);
|
const rangeEnd = Math.max(selectionStart, selectionEnd);
|
||||||
|
|
||||||
const entries = parsedCopylistLines.map(line => {
|
const entries = parsedCopylistLines.map(line => {
|
||||||
|
// Don't show copy button if line is (partially) selected
|
||||||
const caretIntersects = rangeEnd > line.start && rangeStart <= line.end;
|
const caretIntersects = rangeEnd > line.start && rangeStart <= line.end;
|
||||||
if (caretIntersects)
|
if (caretIntersects)
|
||||||
return null;
|
return null;
|
||||||
@@ -137,7 +138,7 @@ OverlayBackground {
|
|||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: stickypadLayout
|
id: stickypadLayout
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 0
|
spacing: -16
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
id: editorScrollView
|
id: editorScrollView
|
||||||
@@ -147,7 +148,7 @@ OverlayBackground {
|
|||||||
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
||||||
onWidthChanged: root.scheduleCopylistUpdate(true)
|
onWidthChanged: root.scheduleCopylistUpdate(true)
|
||||||
|
|
||||||
StyledTextArea {
|
StyledTextArea { // This has to be a direct child of ScrollView for proper scrolling
|
||||||
id: stickypadInput
|
id: stickypadInput
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
|
|||||||
Reference in New Issue
Block a user