chore: fix spacing and width of chat identifier
This commit is contained in:
parent
49d130a111
commit
9d625016ff
|
@ -4,7 +4,6 @@ import "../../../../../imports"
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
property string authorCurrentMsg: "authorCurrentMsg"
|
property string authorCurrentMsg: "authorCurrentMsg"
|
||||||
property int verticalMargin: 50
|
|
||||||
|
|
||||||
property string profileImage
|
property string profileImage
|
||||||
|
|
||||||
|
@ -13,7 +12,7 @@ Column {
|
||||||
visible: authorCurrentMsg === ""
|
visible: authorCurrentMsg === ""
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: this.visible ? verticalMargin : 0
|
anchors.topMargin: this.visible ? Style.current.bigPadding : 0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: circleId
|
id: circleId
|
||||||
|
@ -76,16 +75,11 @@ Column {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
id: channelDescription
|
|
||||||
visible: descText.visible
|
|
||||||
width: visible ? 330 : 0
|
|
||||||
height: visible ? childrenRect.height : 0
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: descText
|
id: descText
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
width: 310
|
||||||
text: {
|
text: {
|
||||||
switch(chatsModel.activeChannel.chatType) {
|
switch(chatsModel.activeChannel.chatType) {
|
||||||
//% "Welcome to the beginning of the <span style='color: %1'>%2</span> group!"
|
//% "Welcome to the beginning of the <span style='color: %1'>%2</span> group!"
|
||||||
|
@ -95,20 +89,17 @@ Column {
|
||||||
default: return "";
|
default: return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
font.pixelSize: 14
|
font.pixelSize: Style.current.primaryTextFontSize
|
||||||
color: Style.current.secondaryText
|
color: Style.current.secondaryText
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
visible: chatsModel.activeChannel.chatType === Constants.chatTypePrivateGroupChat && !chatsModel.activeChannel.isMember
|
visible: chatsModel.activeChannel.chatType === Constants.chatTypePrivateGroupChat && !chatsModel.activeChannel.isMember
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: joinChat.width
|
width: visible ? joinChat.width : 0
|
||||||
height: visible ? 100 : 10
|
height: visible ? 100 : 0
|
||||||
id: joinOrDecline
|
id: joinOrDecline
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
@ -146,14 +137,6 @@ Column {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
id: spacer
|
|
||||||
visible: chatsModel.activeChannel.chatType === Constants.chatTypePrivateGroupChat && chatsModel.activeChannel.isMember
|
|
||||||
width: parent.width
|
|
||||||
height: Style.current.bigPadding
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*##^##
|
/*##^##
|
||||||
|
|
Loading…
Reference in New Issue