Commit 4f85d98
fix: improve message block spacing and layout
Comprehensive improvements to message block spacing and alignment:
Layout improvements:
- Use parent container gap: 1 for consistent spacing between all blocks
- Remove all conditional margin logic from tool groups and text blocks
- Remove paddingBottom from tool-call-item titles
- Changes AI message metadata alignment from flex-start to flex-end
- Reorders credit display to show credits before completion time
Code quality:
- Add hasTextContent() helper function for cleaner type checking
- Change text content to always use .trim() instead of trimTrailingNewlines
- Skip rendering empty text blocks to prevent phantom spacing
Result: Consistent single-line spacing between all message blocks during
both streaming and completed states, with improved visual alignment.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b633702 commit 4f85d98
2 files changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
| 585 | + | |
589 | 586 | | |
590 | 587 | | |
591 | 588 | | |
| |||
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
805 | | - | |
| 802 | + | |
806 | 803 | | |
807 | 804 | | |
808 | 805 | | |
| |||
851 | 848 | | |
852 | 849 | | |
853 | 850 | | |
854 | | - | |
| 851 | + | |
855 | 852 | | |
856 | 853 | | |
857 | 854 | | |
| |||
868 | 865 | | |
869 | 866 | | |
870 | 867 | | |
871 | | - | |
| 868 | + | |
872 | 869 | | |
873 | 870 | | |
| 871 | + | |
874 | 872 | | |
875 | | - | |
876 | 873 | | |
877 | 874 | | |
878 | 875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
0 commit comments