Improve spacing in mobile UserInfo
This commit is contained in:
@@ -49,8 +49,8 @@ RowLayout {
|
|||||||
KirigamiComponents.Avatar {
|
KirigamiComponents.Avatar {
|
||||||
readonly property url avatarUrl: root.connection.localUser.avatarUrl
|
readonly property url avatarUrl: root.connection.localUser.avatarUrl
|
||||||
|
|
||||||
Layout.preferredWidth: Kirigami.Units.iconSizes.medium
|
Layout.preferredWidth: Kirigami.Settings.isMobile ? Kirigami.Units.iconSizes.smallMedium : Kirigami.Units.iconSizes.medium
|
||||||
Layout.preferredHeight: Kirigami.Units.iconSizes.medium
|
Layout.preferredHeight: Kirigami.Settings.isMobile ? Kirigami.Units.iconSizes.smallMedium : Kirigami.Units.iconSizes.medium
|
||||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||||
|
|
||||||
// Note: User::avatarUrl does not set user_id, and thus cannot be used directly here. Hence the makeMediaUrl.
|
// Note: User::avatarUrl does not set user_id, and thus cannot be used directly here. Hence the makeMediaUrl.
|
||||||
@@ -67,6 +67,7 @@ RowLayout {
|
|||||||
id: displayNameLabel
|
id: displayNameLabel
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: root.connection.localUser.displayName
|
text: root.connection.localUser.displayName
|
||||||
|
font.pointSize: Kirigami.Settings.isMobile ? Kirigami.Theme.smallFont : Kirigami.Theme.defaultFont
|
||||||
textFormat: Text.PlainText
|
textFormat: Text.PlainText
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user