Fix phone keyboard and touch targets, render notes as Markdown

This commit is contained in:
Ian Gulliver
2026-10-22 06:33:03 -07:00
parent e2d747d7d3
commit 188a458930
7 changed files with 59 additions and 36 deletions
+3 -1
View File
@@ -439,7 +439,7 @@ private struct WebButton: View {
.font(Fonts.font(13, weight: primary ? 700 : 400))
.foregroundStyle(primary ? Palette.bg : danger ? Palette.danger : Palette.text)
.padding(.horizontal, 12)
.padding(.vertical, 4)
.padding(.vertical, touchOnly ? 7 : 4)
.background(primary ? fill : Palette.raised, in: RoundedRectangle(cornerRadius: 6))
.overlay(RoundedRectangle(cornerRadius: 6).stroke(primary ? fill : hover && enabled ? Palette.muted : Palette.border))
.opacity(enabled ? (configuration.isPressed ? 0.8 : 1) : 0.45)
@@ -458,7 +458,9 @@ struct SmallLinkButtonStyle: ButtonStyle {
.font(Fonts.font(11))
.foregroundStyle(color)
.padding(.horizontal, 6)
.padding(.vertical, touchOnly ? 3 : 0)
.overlay(RoundedRectangle(cornerRadius: 4).stroke(border))
.padding(.vertical, touchOnly ? 5 : 0)
.opacity(enabled ? 1 : 0.45)
.contentShape(Rectangle())
}