Repository navigation
Commit 37ba049
Connect fork-point and branch headers to their anchor message (#238)
* Connect fork-point and branch headers to their anchor message
The fork-point box rendered with an 8px top gap below the message it
hangs off (now visible as a landmark after #233), reading as a detached
floating element. The branch headers floated similarly above their own
content. Tie both to their anchors with a dashed top-border "connector"
and a closed gap, while the .children indent still shows subordination:
- .fork-point: top margin 8px → -1.2em (cancels the card's 1em bottom
margin so it sticks up under the message above), border-top dashed,
square top corners so the dashed edge reads as a connector tab.
- .branch-header: bottom margin 1em → 0 (sticks to its branch content
below), matching dashed top border.
Snapshots regenerated (CSS is inlined into the HTML output); the diff is
limited to these two rules.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Square the branch-header bottom to mirror the fork-point squared top
For visual consistency: the fork-point has a squared top (where it
connects up to the message above), so the branch header — which sticks
to its own content below — should have a squared bottom (where it
connects down). Round the top, square the bottom on .branch-header, and
square its own fold-bar's bottom corners too (the fold-bar sits at the
card's bottom edge, so its rounded corners would otherwise undo it).
Snapshots regenerated (inlined CSS); diff limited to these rules.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 61fd066 commit 37ba049
3 files changed
Lines changed: 192 additions & 35 deletions
File tree
- claude_code_log/html/templates/components
- test/__snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
809 | 815 | | |
810 | | - | |
| 816 | + | |
811 | 817 | | |
812 | 818 | | |
813 | 819 | | |
814 | 820 | | |
815 | 821 | | |
816 | 822 | | |
817 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
818 | 832 | | |
819 | 833 | | |
820 | 834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
129 | 133 | | |
130 | | - | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
135 | | - | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
0 commit comments