Fix event delegates extra bottom space

This commit is contained in:
miruka 2020-05-10 18:30:20 -04:00
parent b4561ce50b
commit e90312803b
3 changed files with 9 additions and 6 deletions

View File

@ -4,8 +4,6 @@
- rename goto*account → scrollto*account - rename goto*account → scrollto*account
- fix opacity - fix opacity
- fix back/front buttons in small window
- fix message delegate too tall
- fix left rooms opacity - fix left rooms opacity
- fix escape keybinds (filter rooms, message selection) - fix escape keybinds (filter rooms, message selection)
- fix python getting stuck when loading large room - fix python getting stuck when loading large room

View File

@ -271,10 +271,14 @@ HRowLayout {
HRepeater { HRepeater {
id: linksRepeater id: linksRepeater
model: [ model: {
eventDelegate.currentModel.media_url, const links = JSON.parse(eventDelegate.currentModel.links)
...JSON.parse(eventDelegate.currentModel.links),
] if (eventDelegate.currentModel.media_url)
links.push(eventDelegate.currentModel.media_url)
return links
}
EventMediaLoader { EventMediaLoader {
singleMediaInfo: eventDelegate.currentModel singleMediaInfo: eventDelegate.currentModel

View File

@ -5,6 +5,7 @@ import "../../../Base"
HLoader { HLoader {
id: loader id: loader
visible: Boolean(item)
x: eventContent.spacing x: eventContent.spacing
onTypeChanged: { onTypeChanged: {