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
- fix opacity
- fix back/front buttons in small window
- fix message delegate too tall
- fix left rooms opacity
- fix escape keybinds (filter rooms, message selection)
- fix python getting stuck when loading large room

View File

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

View File

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