fix too long contact name
This commit is contained in:
parent
2af1431c5a
commit
640eaefade
4 changed files with 14 additions and 1 deletions
|
|
@ -183,7 +183,6 @@ ListView {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
spacing: 16 * DefaultStyle.dp
|
spacing: 16 * DefaultStyle.dp
|
||||||
z: 1
|
z: 1
|
||||||
Avatar {
|
Avatar {
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,8 @@ Notification {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Text {
|
Text {
|
||||||
text: call.core.remoteName
|
text: call.core.remoteName
|
||||||
|
Layout.fillWidth: true
|
||||||
|
maximumLineCount: 1
|
||||||
color: DefaultStyle.grey_600
|
color: DefaultStyle.grey_600
|
||||||
font {
|
font {
|
||||||
pixelSize: 20 * DefaultStyle.dp
|
pixelSize: 20 * DefaultStyle.dp
|
||||||
|
|
|
||||||
|
|
@ -92,12 +92,16 @@ MainRightPanel {
|
||||||
iconSize: 17 * DefaultStyle.dp
|
iconSize: 17 * DefaultStyle.dp
|
||||||
backgroundColor: "transparent"
|
backgroundColor: "transparent"
|
||||||
text: qsTr("Ajouter une image")
|
text: qsTr("Ajouter une image")
|
||||||
|
color: DefaultStyle.main2_700
|
||||||
|
textSize: 16 * DefaultStyle.dp
|
||||||
|
textWeight: 800 * DefaultStyle.dp
|
||||||
KeyNavigation.down: editButton.visible ? editButton : givenNameEdit
|
KeyNavigation.down: editButton.visible ? editButton : givenNameEdit
|
||||||
onClicked: fileDialog.open()
|
onClicked: fileDialog.open()
|
||||||
},
|
},
|
||||||
RowLayout {
|
RowLayout {
|
||||||
visible: mainItem.contact && mainItem.contact.core.pictureUri.length != 0
|
visible: mainItem.contact && mainItem.contact.core.pictureUri.length != 0
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
spacing: 32 * DefaultStyle.dp
|
||||||
IconLabelButton {
|
IconLabelButton {
|
||||||
id: editButton
|
id: editButton
|
||||||
Layout.preferredWidth: width
|
Layout.preferredWidth: width
|
||||||
|
|
@ -106,6 +110,9 @@ MainRightPanel {
|
||||||
iconSize: 17 * DefaultStyle.dp
|
iconSize: 17 * DefaultStyle.dp
|
||||||
backgroundColor: "transparent"
|
backgroundColor: "transparent"
|
||||||
text: qsTr("Modifier")
|
text: qsTr("Modifier")
|
||||||
|
color: DefaultStyle.main2_700
|
||||||
|
textSize: 16 * DefaultStyle.dp
|
||||||
|
textWeight: 800 * DefaultStyle.dp
|
||||||
KeyNavigation.right: removeButton
|
KeyNavigation.right: removeButton
|
||||||
onClicked: fileDialog.open()
|
onClicked: fileDialog.open()
|
||||||
}
|
}
|
||||||
|
|
@ -128,6 +135,9 @@ MainRightPanel {
|
||||||
iconSource: AppIcons.trashCan
|
iconSource: AppIcons.trashCan
|
||||||
backgroundColor: "transparent"
|
backgroundColor: "transparent"
|
||||||
text: qsTr("Supprimer")
|
text: qsTr("Supprimer")
|
||||||
|
color: DefaultStyle.main2_700
|
||||||
|
textSize: 16 * DefaultStyle.dp
|
||||||
|
textWeight: 800 * DefaultStyle.dp
|
||||||
KeyNavigation.left: editButton
|
KeyNavigation.left: editButton
|
||||||
onClicked: mainItem.contact.core.pictureUri = ""
|
onClicked: mainItem.contact.core.pictureUri = ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -493,6 +493,8 @@ AbstractMainPage {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
Text {
|
Text {
|
||||||
text: contactDetail.contactName
|
text: contactDetail.contactName
|
||||||
|
Layout.fillWidth: true
|
||||||
|
maximumLineCount: 1
|
||||||
font {
|
font {
|
||||||
pixelSize: 29 * DefaultStyle.dp
|
pixelSize: 29 * DefaultStyle.dp
|
||||||
weight: 800 * DefaultStyle.dp
|
weight: 800 * DefaultStyle.dp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue