fix(StatusListItemTag): Added margins to better center the content

Added margins to better center the content
This commit is contained in:
Noelia 2022-06-03 12:48:33 +02:00 committed by Michał Cieślak
parent bc9e177f27
commit 31539e0606
1 changed files with 3 additions and 5 deletions

View File

@ -6,7 +6,7 @@ import StatusQ.Core.Theme 0.1
Rectangle { Rectangle {
id: root id: root
width: layout.width width: layout.width + layout.anchors.margins
height: 30 height: 30
color: Theme.palette.primaryColor3 color: Theme.palette.primaryColor3
radius: 15 radius: 15
@ -39,13 +39,12 @@ Rectangle {
RowLayout { RowLayout {
id: layout id: layout
height: parent.height height: parent.height
spacing: 5 anchors.margins: 6
StatusSmartIdenticon { StatusSmartIdenticon {
id: iconOrImage id: iconOrImage
Layout.leftMargin: 5 Layout.leftMargin: 4
image: root.image image: root.image
icon: root.icon icon: root.icon
name: root.title name: root.title
@ -66,7 +65,6 @@ Rectangle {
color: Theme.palette.primaryColor1 color: Theme.palette.primaryColor1
icon: "close-circle" icon: "close-circle"
visible: closeButtonVisible visible: closeButtonVisible
Layout.rightMargin: 5
MouseArea { MouseArea {
id: mouseArea id: mouseArea
anchors.fill: parent anchors.fill: parent