Commit cccfe39
feat(kanban): trim chrome to maximize horizontal space at narrow widths (#241)
* feat(kanban): trim chrome to maximize horizontal space at narrow widths
Strip column-level and screen-level chrome down to the minimum needed for
visual grouping so narrow terminals (~80 cols) stop wasting space — and
overflowing — on borders/padding/margins.
Changes:
- Drop column paddingX, marginRight, and the outer root paddingX.
- Remove the inter-group separator entirely; plan vs implementation grouping
is now signaled by the column accent colors (blue / magenta) alone. Side
effect: dropping the separator's flexGrow={1} also stops the wide-terminal
mid-board void.
- Tighten the card secondary-text / approve-hint indent and chip marginLeft
from 4 to 2.
- Lower MIN_COLUMN_WIDTH from 20 to 12 so narrow terminals shrink instead of
overflowing the row.
- Recompute the slug-truncation, secondary-text-wrap, pendingNew, and title-
truncation width budgets against the new chrome (named via
COLUMN_BORDER_COLS / SLUG_ROW_GUTTER / SECONDARY_ROW_GUTTER).
- Keep paddingX={1} on the title bar and footer only (no border to ground them
against the terminal edge).
Test:
- Add a per-size width-fit assertion to tracker-board-size.test.mjs so
rendered rows never exceed termCols at any SIZE_COMBOS entry.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(tracker): add implementation notes for kanban horizontal-space trims
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(changelog): note kanban horizontal-space trims
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(kanban): note MAX_COLUMN_WIDTH trade-off for wide terminals
Surface the wide-terminal slack inline so future readers don't mistake the
column cap for a layout bug. Addresses PR #241 review note.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(kanban): compress chrome-constant comments to single lines
Match the one-line-when-warranted style from AGENTS.md.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 81ee349 commit cccfe39
6 files changed
Lines changed: 256 additions & 42 deletions
File tree
- src/screens
- tests/e2e/terminal
- tracker/items/maximize-kanban-horizontal-spa
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
246 | 251 | | |
247 | 252 | | |
248 | 253 | | |
249 | | - | |
250 | | - | |
| 254 | + | |
| 255 | + | |
251 | 256 | | |
252 | 257 | | |
253 | | - | |
| 258 | + | |
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
| |||
711 | 716 | | |
712 | 717 | | |
713 | 718 | | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
719 | 723 | | |
720 | 724 | | |
721 | 725 | | |
| |||
741 | 745 | | |
742 | 746 | | |
743 | 747 | | |
744 | | - | |
745 | | - | |
| 748 | + | |
| 749 | + | |
746 | 750 | | |
747 | | - | |
| 751 | + | |
748 | 752 | | |
749 | 753 | | |
750 | 754 | | |
| |||
755 | 759 | | |
756 | 760 | | |
757 | 761 | | |
758 | | - | |
759 | | - | |
760 | 762 | | |
761 | 763 | | |
762 | 764 | | |
| |||
805 | 807 | | |
806 | 808 | | |
807 | 809 | | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
812 | 814 | | |
813 | 815 | | |
814 | 816 | | |
| |||
846 | 848 | | |
847 | 849 | | |
848 | 850 | | |
849 | | - | |
| 851 | + | |
850 | 852 | | |
851 | 853 | | |
852 | 854 | | |
| |||
857 | 859 | | |
858 | 860 | | |
859 | 861 | | |
860 | | - | |
| 862 | + | |
861 | 863 | | |
862 | 864 | | |
863 | 865 | | |
864 | 866 | | |
865 | 867 | | |
866 | 868 | | |
867 | | - | |
| 869 | + | |
868 | 870 | | |
869 | 871 | | |
870 | 872 | | |
| |||
886 | 888 | | |
887 | 889 | | |
888 | 890 | | |
889 | | - | |
| 891 | + | |
890 | 892 | | |
891 | | - | |
| 893 | + | |
892 | 894 | | |
893 | 895 | | |
894 | 896 | | |
| |||
905 | 907 | | |
906 | 908 | | |
907 | 909 | | |
908 | | - | |
| 910 | + | |
909 | 911 | | |
910 | 912 | | |
911 | | - | |
| 913 | + | |
912 | 914 | | |
913 | 915 | | |
914 | 916 | | |
| |||
922 | 924 | | |
923 | 925 | | |
924 | 926 | | |
925 | | - | |
926 | | - | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
927 | 930 | | |
928 | 931 | | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | 932 | | |
944 | 933 | | |
945 | 934 | | |
946 | 935 | | |
947 | | - | |
| 936 | + | |
948 | 937 | | |
949 | 938 | | |
950 | 939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
161 | 178 | | |
162 | 179 | | |
163 | 180 | | |
| |||
Lines changed: 91 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
0 commit comments