Fix phone keyboard and touch targets, render notes as Markdown
This commit is contained in:
@@ -124,11 +124,9 @@ private struct NoteRow: View {
|
||||
@ViewState private var frame: CGRect = .zero
|
||||
|
||||
var body: some View {
|
||||
HStack(alignment: .firstTextBaseline, spacing: 12) {
|
||||
Text(note.text)
|
||||
.textSelection(.enabled)
|
||||
HStack(alignment: .top, spacing: 12) {
|
||||
MarkdownView(blocks: parseMarkdown(note.text))
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
Button("Delete") {
|
||||
Task {
|
||||
if !(await overlays.showConfirm(["Delete this note? Your lead stops applying it.", note.text], action: "Delete", danger: true, anchor: frame)) {
|
||||
|
||||
Reference in New Issue
Block a user