Skip to content

Commit 65de1f1

Browse files
Fixed book title not being centered correctly
1 parent eb059b5 commit 65de1f1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/presentation/readingPage/readingToolbar/MReadingToolBar.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,9 @@ Pane
137137
Label
138138
{
139139
id: bookTitle
140-
// Calculate the padding to position the label in the middle
141-
property int paddingToCenter: - backButton.width - chapterButton.width - bookmarksButton.width
142-
- currentPageButton.width - layout.spacing*5 + Window.width / 2 - contentWidth / 2
143-
144140
Layout.fillWidth: true
145141
Layout.alignment: Qt.AlignVCenter
146-
leftPadding: paddingToCenter
142+
horizontalAlignment: Text.AlignHCenter
147143
text: root.bookTitle
148144
color: Style.colorTitle
149145
font.weight: Font.DemiBold

0 commit comments

Comments
 (0)