support for landscape view
This commit is contained in:
parent
b307fa81be
commit
071d446943
2 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,7 @@ Item {
|
|||
property string bg: ""
|
||||
|
||||
width: parent.width
|
||||
height: avatarImage.height + Theme.paddingLarge*3 + infoLbl.height
|
||||
height: isPortrait ? (avatarImage.height + Theme.paddingLarge*3 + infoLbl.height) : (avatarImage.height + Theme.paddingLarge*2.5 + infoLbl.height)
|
||||
|
||||
Rectangle {
|
||||
id: bgImage
|
||||
|
@ -37,7 +37,7 @@ Item {
|
|||
source: if (avatarImage.status === Image.Error)
|
||||
source = "../../images/icon-l-profile.svg?" + Theme.primaryColor
|
||||
else image
|
||||
width: Theme.iconSizeLarge
|
||||
width: isPortrait ? Theme.iconSizeLarge : Theme.iconSizeExtraLarge
|
||||
height: width
|
||||
anchors {
|
||||
left: parent.left
|
||||
|
@ -94,7 +94,7 @@ Item {
|
|||
color: Theme.secondaryHighlightColor
|
||||
truncationMode: TruncationMode.Fade
|
||||
width: parent.width
|
||||
height: description === "" ? 0 : contentHeight
|
||||
height: contentHeight
|
||||
horizontalAlignment: Text.AlignRight
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ Item {
|
|||
height: followed_by || locked || bot || group ? Theme.iconSizeSmall + Theme.paddingSmall : 0
|
||||
anchors {
|
||||
top: avatarImage.bottom
|
||||
topMargin: Theme.paddingMedium
|
||||
topMargin: isPortrait ? Theme.paddingMedium : 0
|
||||
left: parent.left
|
||||
leftMargin: Theme.horizontalPageMargin
|
||||
right: parent.right
|
||||
|
|
|
@ -265,7 +265,7 @@ BackgroundItem {
|
|||
left: lblContent.left
|
||||
leftMargin: isPortrait ? 0 : Theme.itemSizeSmall
|
||||
right: lblContent.right
|
||||
rightMargin: isPortrait ? 0 : Theme.itemSizeLarge
|
||||
rightMargin: isPortrait ? 0 : Theme.itemSizeLarge * 1.4
|
||||
top: lblContent.bottom
|
||||
topMargin: Theme.paddingMedium
|
||||
bottomMargin: Theme.paddingLarge
|
||||
|
|
Loading…
Reference in a new issue