Files
doona/changes/fix-node-name-grow.md
Zakk f346a83ed8 fix(nodes): give the name column the default grow (#720)
## Problem / 问题

The node name column in `src/features/nodes/NodeTable.tsx` has `grow:
2`, so it takes two shares of the spare table width. At 1440 px most
names fill a third of that, while the groups column shows two groups and
folds the rest into `+8`.

## How I fixed it / 解决方法

The name column uses the default share (`grow: 1`), the same as the
groups column. No change to `src/ui/Table.tsx` or the other columns.
Names longer than the new width truncate with an ellipsis, as they
already did at narrower widths.

## Verified / 验证

`pnpm check` passes. Mock-backend screenshots of the nodes page at 1440
px in zh-TW, main on the left, this branch in the middle and changed
pixels in red on the right; only the table columns change. At 1440 px
the groups column now shows `proxy auto telegram ai +6`. The second
sheet of each pair has every third node renamed to a long name, which
now truncates. 1280 and 1920 px were captured in light mode and show the
same pattern; they are not attached.

Short names, light:
![short names
light](https://gist.githubusercontent.com/Zakkaus/1289bb8e95c5820cf899cfeb917c8735/raw/43aeb70c57325107849f2e801228832020f98e13/short-1440.png)

Long names, light:
![long names
light](https://gist.githubusercontent.com/Zakkaus/1289bb8e95c5820cf899cfeb917c8735/raw/43aeb70c57325107849f2e801228832020f98e13/long-1440.png)

Short names, dark:
![short names
dark](https://gist.githubusercontent.com/Zakkaus/1289bb8e95c5820cf899cfeb917c8735/raw/43aeb70c57325107849f2e801228832020f98e13/dark-short-1440.png)

Long names, dark:
![long names
dark](https://gist.githubusercontent.com/Zakkaus/1289bb8e95c5820cf899cfeb917c8735/raw/43aeb70c57325107849f2e801228832020f98e13/dark-long-1440.png)

---

- [x] I understand this change and answer for every line
- [x] This branch is based on the current main
- [x] I ran the repository's gates and recorded the results in Verified
- [x] Each commit is one coherent change
- [ ] If behaviour changed, I updated the documentation
- [ ] If interface text changed, I updated `en.json` and every complete
language's catalogue
- [x] If interface appearance changed, I attached light and dark
screenshots
- [ ] If the API contract changed, I ran `pnpm gen:api` and `pnpm
check:gen`
- [ ] I checked the boxes above without reading them
- [ ] I am an AI agent, and this content was submitted without human
review
2026-12-04 12:53:52 +00:00

148 B

Changed

  • The node name column no longer takes twice the spare width, so the groups column shows more group names before folding the rest into +N.