fix(@desktop/wallet): ensure NFT background colors are rendered correctly
Also adjust margins of collectible items to adhere to designs. Fixes: #3981
This commit is contained in:
parent
fdc8fea88e
commit
7fcd280fe0
|
@ -48,7 +48,7 @@ proc initItem*(
|
||||||
result.id = id
|
result.id = id
|
||||||
result.name = name
|
result.name = name
|
||||||
result.imageUrl = imageUrl
|
result.imageUrl = imageUrl
|
||||||
result.backgroundColor = backgroundColor
|
result.backgroundColor = if (backgroundColor == ""): "transparent" else: ("#" & backgroundColor)
|
||||||
result.permalink = permalink
|
result.permalink = permalink
|
||||||
result.properties = properties
|
result.properties = properties
|
||||||
result.rankings = rankings
|
result.rankings = rankings
|
||||||
|
|
|
@ -58,18 +58,15 @@ Item {
|
||||||
id: collectionsRepeater
|
id: collectionsRepeater
|
||||||
model: RootStore.collectionList
|
model: RootStore.collectionList
|
||||||
delegate: StatusExpandableItem {
|
delegate: StatusExpandableItem {
|
||||||
width: parent.width - 156
|
anchors.left: parent.left
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.right: parent.right
|
||||||
|
|
||||||
primaryText: model.name
|
primaryText: model.name
|
||||||
image.source: model.imageUrl
|
image.source: model.imageUrl
|
||||||
type: StatusExpandableItem.Type.Secondary
|
type: StatusExpandableItem.Type.Secondary
|
||||||
expandableComponent: CollectibleCollectionView {
|
expandableComponent: CollectibleCollectionView {
|
||||||
slug: model.slug
|
slug: model.slug
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: Style.current.bigPadding
|
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: Style.current.bigPadding
|
|
||||||
onCollectibleClicked: {
|
onCollectibleClicked: {
|
||||||
root.collectibleClicked();
|
root.collectibleClicked();
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,7 @@ Item {
|
||||||
id: contentLoader
|
id: contentLoader
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: 16
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
sourceComponent: root.collectiblesLoaded ? loaded : loading
|
sourceComponent: root.collectiblesLoaded ? loaded : loading
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue