summaryrefslogtreecommitdiff
path: root/Hutch
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-07 01:44:10 -0500
committerChristian Cleberg <[email protected]>2026-08-07 01:44:10 -0500
commit5e4e259d8bfd9b062aa39af793ec3a59b70ad7f0 (patch)
tree426f2ed5641f41fccb4bd08d3c220cc90180f189 /Hutch
parent456e3e143d30175d41eaa1bd22bffa59231c8ec3 (diff)
downloadhutch-5e4e259d8bfd9b062aa39af793ec3a59b70ad7f0.tar.gz
hutch-5e4e259d8bfd9b062aa39af793ec3a59b70ad7f0.tar.bz2
hutch-5e4e259d8bfd9b062aa39af793ec3a59b70ad7f0.zip
Fix checklist rendering with inline code (#18)
The .task-list-item CSS used display: inline-flex, which turned each text run and inline <code> into separate rigid flex items so a bullet mixing code with text rendered malformed instead of flowing inline. The checkbox is already centered via vertical-align, so switch to plain inline display and let the fragments flow and wrap naturally.
Diffstat (limited to 'Hutch')
-rw-r--r--Hutch/Views/Repositories/ReadmeView.swift4
1 files changed, 1 insertions, 3 deletions
diff --git a/Hutch/Views/Repositories/ReadmeView.swift b/Hutch/Views/Repositories/ReadmeView.swift
index 69d105b..b8b9622 100644
--- a/Hutch/Views/Repositories/ReadmeView.swift
+++ b/Hutch/Views/Repositories/ReadmeView.swift
@@ -1809,9 +1809,7 @@ private struct HTMLWebViewRepresentable: UIViewRepresentable {
vertical-align: middle;
}
.task-list-item {
- display: inline-flex;
- align-items: center;
- gap: 0.1rem;
+ display: inline;
}
a { color: \(linkColor); }
table { border-collapse: collapse; width: 100%; }