fix(Community Permissions): Update PermissionItem according to the new design

Removed `and` text between items in `In` section.

Fixes #9049
This commit is contained in:
Noelia 2023-01-12 10:11:09 +01:00 committed by Noelia
parent 985ef830df
commit cc4ebc0ec8

View File

@ -154,30 +154,16 @@ Control{
Repeater {
model: root.channelsListModel
RowLayout {
spacing: content.spacing
StatusBaseText {
id: operatorInText
Layout.preferredHeight: d.flowRowHeight
visible: model.index !== 0
Layout.alignment: Qt.AlignVCenter
text: qsTr("and")
font.pixelSize: d.itemTextPixelSize
verticalAlignment: Text.AlignVCenter
}
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
asset.bgColor: "transparent"
closeButtonVisible: false
titleText.color: Theme.palette.primaryColor1
titleText.font.pixelSize: d.tagTextPixelSize
}
StatusListItemTag {
height: d.flowRowHeight
width: (implicitWidth > content.width) ? content.width : implicitWidth
title: model.text
asset.name: model.imageSource
asset.isImage: true
asset.bgColor: "transparent"
closeButtonVisible: false
titleText.color: Theme.palette.primaryColor1
titleText.font.pixelSize: d.tagTextPixelSize
}
}
}