minor refactor
This commit is contained in:
parent
70606652e4
commit
faf24e9514
|
@ -12,6 +12,8 @@ struct MessageInfoView: View {
|
||||||
@State var index = 1
|
@State var index = 1
|
||||||
@State var showingAttachmentFullScreen = false
|
@State var showingAttachmentFullScreen = false
|
||||||
|
|
||||||
|
static private let cornerRadius: CGFloat = 18
|
||||||
|
|
||||||
var actions: [ContextMenuVC.Action]
|
var actions: [ContextMenuVC.Action]
|
||||||
var messageViewModel: MessageViewModel
|
var messageViewModel: MessageViewModel
|
||||||
var isMessageFailed: Bool {
|
var isMessageFailed: Bool {
|
||||||
|
@ -44,7 +46,7 @@ struct MessageInfoView: View {
|
||||||
(.messageBubble_outgoingBackground, .messageBubble_outgoingText)
|
(.messageBubble_outgoingBackground, .messageBubble_outgoingText)
|
||||||
|
|
||||||
ZStack {
|
ZStack {
|
||||||
RoundedRectangle(cornerRadius: 18)
|
RoundedRectangle(cornerRadius: Self.cornerRadius)
|
||||||
.fill(themeColor: bubbleBackgroundColor)
|
.fill(themeColor: bubbleBackgroundColor)
|
||||||
|
|
||||||
Text(body)
|
Text(body)
|
||||||
|
@ -148,7 +150,7 @@ struct MessageInfoView: View {
|
||||||
|
|
||||||
// Attachment Info
|
// Attachment Info
|
||||||
ZStack {
|
ZStack {
|
||||||
RoundedRectangle(cornerRadius: 17)
|
RoundedRectangle(cornerRadius: Self.cornerRadius)
|
||||||
.fill(themeColor: .backgroundSecondary)
|
.fill(themeColor: .backgroundSecondary)
|
||||||
|
|
||||||
VStack(
|
VStack(
|
||||||
|
@ -223,7 +225,7 @@ struct MessageInfoView: View {
|
||||||
|
|
||||||
// Message Info
|
// Message Info
|
||||||
ZStack {
|
ZStack {
|
||||||
RoundedRectangle(cornerRadius: 17)
|
RoundedRectangle(cornerRadius: Self.cornerRadius)
|
||||||
.fill(themeColor: .backgroundSecondary)
|
.fill(themeColor: .backgroundSecondary)
|
||||||
|
|
||||||
VStack(
|
VStack(
|
||||||
|
@ -311,7 +313,7 @@ struct MessageInfoView: View {
|
||||||
// Actions
|
// Actions
|
||||||
if !actions.isEmpty {
|
if !actions.isEmpty {
|
||||||
ZStack {
|
ZStack {
|
||||||
RoundedRectangle(cornerRadius: 17)
|
RoundedRectangle(cornerRadius: Self.cornerRadius)
|
||||||
.fill(themeColor: .backgroundSecondary)
|
.fill(themeColor: .backgroundSecondary)
|
||||||
|
|
||||||
VStack(
|
VStack(
|
||||||
|
|
Loading…
Reference in New Issue