mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 00:56:39 +00:00
fix(@desktop/chat): Fix small UI issues
1. Removed back button from pinned popup 2. Added border to user identifier in members list fixes #3552
This commit is contained in:
parent
f54f3a61bf
commit
3e8313d176
@ -5,6 +5,9 @@ import "../../../../shared/status"
|
|||||||
import "../../../../imports"
|
import "../../../../imports"
|
||||||
import "../components"
|
import "../components"
|
||||||
|
|
||||||
|
import StatusQ.Components 0.1
|
||||||
|
import StatusQ.Core.Theme 0.1
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: wrapper
|
id: wrapper
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
@ -72,17 +75,19 @@ Item {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
StatusBadge {
|
||||||
width: 10
|
id: statusBadge
|
||||||
height: 10
|
width: 15
|
||||||
radius: (width/2)
|
height: 15
|
||||||
anchors.left: contactImage.right
|
anchors.left: contactImage.right
|
||||||
anchors.leftMargin: -Style.current.smallPadding
|
anchors.leftMargin: -Style.current.smallPadding
|
||||||
anchors.bottom: contactImage.bottom
|
anchors.bottom: contactImage.bottom
|
||||||
visible: wrapper.isOnline
|
visible: wrapper.isOnline && !((statusType === -1) && (lastSeenMinutesAgo > 7))
|
||||||
|
border.width: 3
|
||||||
|
border.color: Theme.palette.statusAppNavBar.backgroundColor
|
||||||
|
property real lastSeenMinutesAgo: ((currentTime/1000 - parseInt(lastSeen)) / 60);
|
||||||
color: {
|
color: {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
var lastSeenMinutesAgo = ((currentTime/1000 - parseInt(lastSeen)) / 60);
|
|
||||||
if (statusType === Constants.statusType_DoNotDisturb) {
|
if (statusType === Constants.statusType_DoNotDisturb) {
|
||||||
return Style.current.red;
|
return Style.current.red;
|
||||||
} else if (isCurrentUser || (lastSeenMinutesAgo < 5.5)) {
|
} else if (isCurrentUser || (lastSeenMinutesAgo < 5.5)) {
|
||||||
|
@ -176,17 +176,7 @@ ModalPopup {
|
|||||||
|
|
||||||
footer: Item {
|
footer: Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: btnBack.height
|
height: btnUnpin.height
|
||||||
|
|
||||||
StatusRoundButton {
|
|
||||||
id: btnBack
|
|
||||||
anchors.left: parent.left
|
|
||||||
icon.name: "arrow-right"
|
|
||||||
icon.width: 20
|
|
||||||
icon.height: 16
|
|
||||||
rotation: 180
|
|
||||||
onClicked: popup.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
id: btnUnpin
|
id: btnUnpin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user