Fix chapter dialog and list highlighting

This commit is contained in:
Bart De Vries 2023-09-28 14:26:08 +02:00
parent 9525bf075a
commit fa40d2b4c6
2 changed files with 8 additions and 3 deletions

View File

@ -448,8 +448,6 @@ FocusScope {
Kirigami.Dialog {
id: chapterOverlay
preferredWidth: Kirigami.Units.gridUnit * 30
preferredHeight: Kirigami.Units.gridUnit * 25
showCloseButton: false
@ -457,6 +455,12 @@ FocusScope {
ListView {
id: chapterList
currentIndex: -1
implicitWidth: Kirigami.Units.gridUnit * 30
implicitHeight: Kirigami.Units.gridUnit * 25
model: chapterModel
delegate: ChapterListDelegate {
id: chapterDelegate

View File

@ -266,8 +266,9 @@ Kirigami.ScrollablePage {
ListView {
visible: count !== 0
Layout.fillWidth: true
height: contentHeight
implicitHeight: contentHeight
interactive: false
currentIndex: -1
Layout.leftMargin: Kirigami.Units.gridUnit
Layout.rightMargin: Kirigami.Units.gridUnit
Layout.bottomMargin: Kirigami.Units.gridUnit