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

View File

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