fix(ProfileDialogView): fix bio top margin...

- it was too tight with empty bio
- unbreak the storybook page
This commit is contained in:
Lukáš Tinkl 2023-07-25 15:35:47 +02:00 committed by Lukáš Tinkl
parent 8dafd27933
commit 035f0b8122
3 changed files with 14 additions and 6 deletions

View File

@ -99,7 +99,13 @@ SplitView {
Popups { Popups {
popupParent: root popupParent: root
rootStore: QtObject {} rootStore: QtObject {
property var contactStore: QtObject {
function changeContactNickname(publicKey, newNickname) {
logs.logEvent("rootStore::contactStore::changeContactNickname", ["publicKey", "newNickname"], arguments)
}
}
}
} }
SplitView { SplitView {
@ -169,13 +175,17 @@ SplitView {
function verifiedUntrustworthy(publicKey) { function verifiedUntrustworthy(publicKey) {
logs.logEvent("contactsStore::verifiedUntrustworthy", ["publicKey"], arguments) logs.logEvent("contactsStore::verifiedUntrustworthy", ["publicKey"], arguments)
} }
function getLinkToProfile(publicKey) {
return "https://status.app/u/" + publicKey
}
} }
communitiesModel: ListModel { communitiesModel: ListModel {
ListElement { ListElement {
name: "Not the cool gang" name: "Not the cool gang"
memberRole: 0 // Constants.memberRole.none memberRole: 0 // Constants.memberRole.none
isControlNode: false, isControlNode: false
description: "Nothing to write home about" description: "Nothing to write home about"
color: "indigo" color: "indigo"
image: "" image: ""
@ -187,7 +197,7 @@ SplitView {
ListElement { ListElement {
name: "Awesome bunch" name: "Awesome bunch"
memberRole: 4 // Constants.memberRole.admin memberRole: 4 // Constants.memberRole.admin
isControlNode: false, isControlNode: false
description: "Where the cool guys hang out & Nothing to write home about" description: "Where the cool guys hang out & Nothing to write home about"
color: "green" color: "green"
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/ image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
@ -204,7 +214,7 @@ SplitView {
ListElement { ListElement {
name: "Invisible community (should not display!)" name: "Invisible community (should not display!)"
memberRole: 1 // Constants.memberRole.owner memberRole: 1 // Constants.memberRole.owner
isControlNode: true, isControlNode: true
description: "Get outta here" description: "Get outta here"
color: "red" color: "red"
image: "" image: ""

View File

@ -72,7 +72,6 @@ Control {
visible: root.bio visible: root.bio
padding: 0 padding: 0
topPadding: Style.current.halfPadding
rightPadding: ScrollBar.vertical.visible ? 16 : 0 rightPadding: ScrollBar.vertical.visible ? 16 : 0
Layout.maximumHeight: 108 Layout.maximumHeight: 108

View File

@ -516,7 +516,6 @@ Pane {
Layout.fillHeight: true Layout.fillHeight: true
Layout.leftMargin: -column.anchors.leftMargin Layout.leftMargin: -column.anchors.leftMargin
Layout.rightMargin: -column.anchors.rightMargin Layout.rightMargin: -column.anchors.rightMargin
Layout.topMargin: -column.spacing
padding: 0 padding: 0
contentWidth: availableWidth contentWidth: availableWidth