Skip to content

Commit

Permalink
Timeline: Don't mess with room header padding
Browse files Browse the repository at this point in the history
Recalculation of padding depending on whether the scroll bar is there
can easily break the already fragile layout logic, bringing minimal
benefits in return (it was made to avoid the text ending up under
transient scrollbars that are overlapping with the client area - but
transient scrollbars disappear after scrolling anyway).

Hopefully fixes #916.
  • Loading branch information
KitsuneRal committed Nov 11, 2024
1 parent 5b6f9c2 commit bead28b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/qml/Timeline.qml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ Page {
id: topicText
padding: 2
leftPadding: headerText.innerLeftPadding
rightPadding: topicField.ScrollBar.vertical.visible
? topicField.ScrollBar.vertical.width : padding

text: room ? room.prettyPrint(room.topic) : ""
placeholderText: qsTr("(no topic)")
Expand Down

0 comments on commit bead28b

Please sign in to comment.