fix(CommunityPermissions/PermissionItem): The component allowed adding labels with long texts that exceed the content itself
- Updated `PermissionItem` to avoid the `StatusListItemTag` exceeding the content itself. Fixes #8580
This commit is contained in:
parent
579075d6cc
commit
73b2fb2271
|
@ -100,6 +100,7 @@ Control{
|
|||
spacing: content.spacing
|
||||
|
||||
StatusBaseText {
|
||||
id: operatorText
|
||||
Layout.preferredHeight: d.flowRowHeight
|
||||
visible: model.operator !== OperatorsUtils.Operators.None
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
@ -110,6 +111,7 @@ Control{
|
|||
}
|
||||
StatusListItemTag {
|
||||
Layout.preferredHeight: d.flowRowHeight
|
||||
Layout.maximumWidth: content.width - operatorText.width - spacing
|
||||
leftPadding: 2
|
||||
title: model.text
|
||||
asset.name: model.imageSource
|
||||
|
@ -156,6 +158,7 @@ Control{
|
|||
spacing: content.spacing
|
||||
|
||||
StatusBaseText {
|
||||
id: operatorInText
|
||||
Layout.preferredHeight: d.flowRowHeight
|
||||
visible: model.index !== 0
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
@ -166,6 +169,7 @@ Control{
|
|||
}
|
||||
StatusListItemTag {
|
||||
Layout.preferredHeight: d.flowRowHeight
|
||||
Layout.maximumWidth: (model.index !== 0) ? (content.width - operatorInText.width - spacing) : content.width
|
||||
title: model.text
|
||||
asset.name: model.imageSource
|
||||
asset.isImage: true
|
||||
|
|
Loading…
Reference in New Issue