Minor improvements (#46)
This commit is contained in:
parent
8e57f0e63b
commit
6ccd27b2e5
|
@ -12,7 +12,7 @@ struct AppAccountView: View {
|
|||
AvatarView(url: account.avatar)
|
||||
if viewModel.appAccount.id == appAccounts.currentAccount.id {
|
||||
Image(systemName: "checkmark.circle.fill")
|
||||
.foregroundColor(.green)
|
||||
.foregroundStyle(.white, .green)
|
||||
.offset(x: 5, y: -5)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -213,6 +213,21 @@ public struct AccountDetailView: View {
|
|||
.scrollContentBackground(.hidden)
|
||||
.background(theme.secondaryBackgroundColor)
|
||||
.navigationTitle("About")
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
Button {
|
||||
isFieldsSheetDisplayed = false
|
||||
} label: {
|
||||
Image(systemName: "xmark")
|
||||
.imageScale(.small)
|
||||
.font(.body.weight(.semibold))
|
||||
.frame(width: 30, height: 30)
|
||||
.background(theme.primaryBackgroundColor.opacity(0.5))
|
||||
.clipShape(Circle())
|
||||
}
|
||||
.foregroundColor(theme.tintColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,5 +27,6 @@ public struct EmptyView: View {
|
|||
}
|
||||
.padding(.top, 100)
|
||||
.padding(.layoutPadding)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,7 +146,7 @@ public class StatusEditorViewModel: ObservableObject {
|
|||
statusText.addAttributes([.foregroundColor: UIColor(Color.label)],
|
||||
range: NSMakeRange(0, statusText.string.utf16.count))
|
||||
let hashtagPattern = "(#+[a-zA-Z0-9(_)]{1,})"
|
||||
let mentionPattern = "(@+[a-zA-Z0-9(_).]{1,})"
|
||||
let mentionPattern = "(@+[a-zA-Z0-9(_).-]{1,})"
|
||||
let urlPattern = "(?i)https?://(?:www\\.)?\\S+(?:/|\\b)"
|
||||
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue