mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 08:20:59 +00:00
Various visionOS fixes
This commit is contained in:
parent
75bb4f43dd
commit
f14ca6e529
2 changed files with 15 additions and 0 deletions
|
@ -137,6 +137,12 @@ extension StatusEditor {
|
|||
.environment(\.isModal, true)
|
||||
.padding(.horizontal, .layoutPadding)
|
||||
.padding(.vertical, .statusComponentSpacing)
|
||||
#if os(visionOS)
|
||||
.background(RoundedRectangle(cornerRadius: 8)
|
||||
.foregroundStyle(.background))
|
||||
.buttonStyle(.plain)
|
||||
.padding(.layoutPadding)
|
||||
#endif
|
||||
|
||||
} else if let status = viewModel.embeddedStatus {
|
||||
StatusEmbeddedView(status: status, client: client, routerPath: RouterPath())
|
||||
|
|
|
@ -85,6 +85,9 @@ public struct StatusRowMediaPreviewView: View {
|
|||
tabAction(for: index)
|
||||
}
|
||||
}
|
||||
#if os(visionOS)
|
||||
.hoverEffect()
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -275,6 +278,9 @@ struct AltTextButton: View {
|
|||
.buttonStyle(.borderless)
|
||||
.padding(EdgeInsets(top: 5, leading: 7, bottom: 5, trailing: 7))
|
||||
.background(.thinMaterial)
|
||||
#if os(visionOS)
|
||||
.clipShape(Capsule())
|
||||
#endif
|
||||
.cornerRadius(4)
|
||||
.padding(theme.statusDisplayStyle == .compact ? 0 : 10)
|
||||
.alert(
|
||||
|
@ -432,6 +438,9 @@ private struct FeaturedImagePreView: View {
|
|||
RoundedRectangle(cornerRadius: 10)
|
||||
.stroke(.gray.opacity(0.35), lineWidth: 1)
|
||||
)
|
||||
#if os(visionOS)
|
||||
.hoverEffect()
|
||||
#endif
|
||||
}
|
||||
}
|
||||
.overlay {
|
||||
|
|
Loading…
Reference in a new issue