Commit 2c66a6b
fix(docs): remove double borders and fix column alignment on landing page tables (#369)
## Summary
Fixes the ASCII art tables on the landing page that had double borders
(CSS border on top of box-drawing characters) and misaligned column
headers. The root cause was twofold: global `pre` styling rules adding
unwanted borders/padding, and Astro's smartypants converting `'` → `'`
and `...` → `…` inside `<pre>` blocks which broke monospace alignment.
## Changes
- Excluded `.table-box` from two global `pre` border rules in
`custom.css`
- Added a dedicated `pre.table-box` reset that strips background,
border, padding, and margin
- Forced system monospace fonts with normalized glyph metrics on all
table-box children to guarantee consistent column alignment across
browsers
- Disabled `markdown.smartypants` in `astro.config.mjs` to prevent
character substitution that breaks monospace column widths
## Test plan
- [ ] Check the landing page (`/`) — both Terminal and FeatureTerminal
tables should have no CSS border, only ASCII box-drawing borders
- [ ] Verify column headers align with data rows and separator lines
- [ ] Check on mobile viewport (~375px) — same alignment checks
- [ ] Verify code blocks on other pages (e.g. `/getting-started/`) still
have their border styling
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent c8d714f commit 2c66a6b
2 files changed
+31
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
916 | | - | |
| 916 | + | |
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
| |||
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
932 | 958 | | |
933 | 959 | | |
934 | 960 | | |
| |||
1089 | 1115 | | |
1090 | 1116 | | |
1091 | 1117 | | |
1092 | | - | |
| 1118 | + | |
1093 | 1119 | | |
1094 | 1120 | | |
1095 | 1121 | | |
| |||
0 commit comments