mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Minor fixes for undefined qml behavior
This commit is contained in:
parent
c93a7b2435
commit
13a5194c08
1 changed files with 4 additions and 7 deletions
|
@ -39,17 +39,13 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
id: content
|
id: content
|
||||||
Layout.maximumWidth: parent? parent.width: undefined
|
|
||||||
|
Layout.fillWidth: true
|
||||||
MxcMedia {
|
MxcMedia {
|
||||||
id: mxcmedia
|
id: mxcmedia
|
||||||
// TODO: Show error in overlay or so?
|
// TODO: Show error in overlay or so?
|
||||||
onError: console.log(error)
|
onError: console.log(error)
|
||||||
roomm: room
|
roomm: room
|
||||||
onMediaStatusChanged: {
|
|
||||||
if (status == MxcMedia.LoadedMedia) {
|
|
||||||
progress.updatePositionTexts();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -65,9 +61,10 @@ ColumnLayout {
|
||||||
property double divisor: isReply ? 4 : 2
|
property double divisor: isReply ? 4 : 2
|
||||||
property bool tooHigh: tempHeight > timelineRoot.height / divisor
|
property bool tooHigh: tempHeight > timelineRoot.height / divisor
|
||||||
|
|
||||||
Layout.maximumWidth: Layout.preferredWidth
|
|
||||||
Layout.preferredHeight: tooHigh ? timelineRoot.height / divisor : tempHeight
|
Layout.preferredHeight: tooHigh ? timelineRoot.height / divisor : tempHeight
|
||||||
Layout.preferredWidth: tooHigh ? (timelineRoot.height / divisor) / proportionalHeight : tempWidth
|
Layout.preferredWidth: tooHigh ? (timelineRoot.height / divisor) / proportionalHeight : tempWidth
|
||||||
|
Layout.maximumWidth: Layout.preferredWidth
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: thumbnailUrl.replace("mxc://", "image://MxcImage/")
|
source: thumbnailUrl.replace("mxc://", "image://MxcImage/")
|
||||||
|
|
Loading…
Reference in a new issue