diff --git a/qml/pages/components/ProfileHeader.qml b/qml/pages/components/ProfileHeader.qml index b4d5355..5cddfbd 100644 --- a/qml/pages/components/ProfileHeader.qml +++ b/qml/pages/components/ProfileHeader.qml @@ -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 diff --git a/qml/pages/components/VisualContainer.qml b/qml/pages/components/VisualContainer.qml index b0a6e82..57cacb3 100644 --- a/qml/pages/components/VisualContainer.qml +++ b/qml/pages/components/VisualContainer.qml @@ -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