Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf committed Jan 20, 2024
1 parent 1866825 commit ec06fd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Mlem/Views/Shared/Composer/PostComposerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,12 @@ struct PostComposerView: View {
let url = URL(string: attachmentModel.url)
if !(url?.isImage ?? true) {
HStack(spacing: AppConstants.postAndCommentSpacing) {
Image(systemName: "link")
Image(systemName: Icons.websiteAddress)
.foregroundStyle(.blue)
Text(attachmentModel.url)
.foregroundStyle(.secondary)
.lineLimit(1)
Spacer()
Button(action: attachmentModel.removeLinkAction, label: {
Image(systemName: Icons.close)
.fontWeight(.semibold)
Expand Down Expand Up @@ -255,7 +256,7 @@ struct PostComposerView: View {
}
ToolbarItem(placement: .navigationBarTrailing) {
LinkUploadOptionsView(model: attachmentModel) {
Label("Attach image or link", systemImage: "link")
Label("Attach Image or Link", systemImage: Icons.websiteAddress)
}
.disabled(attachmentModel.imageModel != nil || attachmentModel.url.isNotEmpty)
}
Expand Down

0 comments on commit ec06fd8

Please sign in to comment.