Commit 2525142
fix(ui): solve header visibility by constraining pane heights
After extensive debugging, discovered root cause: bordered panes in profileListView
were growing unbounded without explicit Height() constraints, causing content to
overflow and terminal to truncate header from top.
Solution: Calculate available height for panes and cap at 70% of contentHeight:
- filterHeight: 2-3 lines depending on filter mode
- helpHeight: 4 lines for help text
- paneHeight: contentHeight - filterHeight - helpHeight - 4 (safety margin)
- maxPaneHeight: 70% of contentHeight (cap)
- Set explicit Height(paneHeight) on both profile and K8s panes
This ensures total content fits within available space, preventing overflow.
Debug process:
1. Added markers at top/bottom of content
2. User reported seeing bottom but not top marker
3. Confirmed content overflow from top
4. Added explicit Height() constraints
5. Iteratively reduced height until header visible
6. Settled on 70% cap for safety
Also updated:
- CLAUDE.md: Documented Session 5 with complete debugging journey
Fixes: Header now visible in all views including profile list view
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 05dec4a commit 2525142
2 files changed
Lines changed: 111 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
763 | 841 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
553 | 561 | | |
554 | 562 | | |
555 | 563 | | |
556 | | - | |
557 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
558 | 567 | | |
559 | | - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
560 | 571 | | |
561 | | - | |
562 | | - | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
563 | 581 | | |
564 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
565 | 589 | | |
566 | 590 | | |
567 | 591 | | |
| |||
641 | 665 | | |
642 | 666 | | |
643 | 667 | | |
644 | | - | |
645 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
646 | 671 | | |
647 | 672 | | |
648 | 673 | | |
| |||
0 commit comments