mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NSearchableComboBox: fix hover & badge layout
This commit is contained in:
@@ -184,7 +184,11 @@ RowLayout {
|
||||
id: defaultDelegate
|
||||
ItemDelegate {
|
||||
id: delegateRoot
|
||||
width: listView.width
|
||||
width: listView.width - listView.scrollBarTotalWidth
|
||||
leftPadding: Style.marginM
|
||||
rightPadding: Style.marginM
|
||||
topPadding: Style.marginS
|
||||
bottomPadding: Style.marginS
|
||||
hoverEnabled: true
|
||||
highlighted: ListView.view.currentIndex === index
|
||||
|
||||
@@ -201,7 +205,7 @@ RowLayout {
|
||||
}
|
||||
|
||||
contentItem: RowLayout {
|
||||
width: parent.width
|
||||
width: delegateRoot.width - delegateRoot.leftPadding - delegateRoot.rightPadding
|
||||
spacing: Style.marginM
|
||||
|
||||
NText {
|
||||
@@ -248,7 +252,7 @@ RowLayout {
|
||||
}
|
||||
}
|
||||
background: Rectangle {
|
||||
width: listView.width
|
||||
anchors.fill: parent
|
||||
color: highlighted ? Color.mHover : Color.transparent
|
||||
radius: Style.iRadiusS
|
||||
Behavior on color {
|
||||
|
||||
Reference in New Issue
Block a user