mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-24 08:00:38 +00:00
Fix status embed
This commit is contained in:
parent
b7937e3580
commit
78eee1e855
1 changed files with 14 additions and 6 deletions
|
@ -31,12 +31,20 @@ struct StatusRowContentView: View {
|
|||
!isCompact,
|
||||
viewModel.isEmbedLoading || viewModel.embeddedStatus != nil
|
||||
{
|
||||
StatusEmbeddedView(status: viewModel.embeddedStatus ?? Status.placeholder(),
|
||||
client: viewModel.client,
|
||||
routerPath: viewModel.routerPath)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.redacted(reason: viewModel.isEmbedLoading ? .placeholder : [])
|
||||
.transition(.opacity)
|
||||
if let embeddedStatus = viewModel.embeddedStatus {
|
||||
StatusEmbeddedView(status: embeddedStatus,
|
||||
client: viewModel.client,
|
||||
routerPath: viewModel.routerPath)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.transition(.opacity)
|
||||
} else {
|
||||
StatusEmbeddedView(status: Status.placeholder(),
|
||||
client: viewModel.client,
|
||||
routerPath: viewModel.routerPath)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.redacted(reason: .placeholder)
|
||||
.transition(.opacity)
|
||||
}
|
||||
}
|
||||
|
||||
if !viewModel.finalStatus.mediaAttachments.isEmpty {
|
||||
|
|
Loading…
Reference in a new issue