Set position and width of card in details page

This means that the card itself shouldn't specify a width. It should get a width from how it's used.

Contributes to issue CURA-8565.
This commit is contained in:
Ghostkeeper 2021-11-29 16:11:15 +01:00 committed by Jelle Spijker
parent 5edd830210
commit 0069182c6b
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
3 changed files with 10 additions and 1 deletions

View file

@ -12,7 +12,6 @@ Rectangle
{
property var packageData
width: parent ? parent.width - UM.Theme.getSize("default_margin").width - UM.Theme.getSize("narrow_margin").width: 0
height: UM.Theme.getSize("card").height
color: UM.Theme.getColor("main_background")
radius: UM.Theme.getSize("default_radius").width