Add horizontal scrollbar in ErrorDetailsView

This commit is contained in:
Casper Jeukendrup 2023-01-25 16:43:17 +01:00
parent 3fc0946a9c
commit db14c507be
No known key found for this signature in database
GPG key ID: 6C571BEF59E722DD

View file

@ -60,6 +60,9 @@ Column {
anchors.fill: parent
anchors.margins: 1
contentWidth: contentItem.childrenRect.width
flickableDirection: Flickable.AutoFlickDirection
spacing: 0
model: detailsModel
@ -88,9 +91,14 @@ Column {
background.color: model.index % 2 === 0 ? ui.theme.backgroundSecondaryColor : "transparent"
mouseArea.enabled: false
implicitWidth: label.implicitWidth + 2 * 30
width: Math.max(ListView.view.width, implicitWidth)
StyledTextLabel {
id: label
anchors.fill: parent
anchors.leftMargin: 30
anchors.rightMargin: 30
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft