Skip to content

Add "Set column width to maximum/minimum" actions#148

Merged
peterfajdiga merged 1 commit intopeterfajdiga:masterfrom
jinliu:feature/column-width-max
Mar 15, 2026
Merged

Add "Set column width to maximum/minimum" actions#148
peterfajdiga merged 1 commit intopeterfajdiga:masterfrom
jinliu:feature/column-width-max

Conversation

@jinliu
Copy link
Contributor

@jinliu jinliu commented Jan 20, 2026

No description provided.

Copy link
Owner

@peterfajdiga peterfajdiga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice feature, thanks!

column.minWidth() can be too small to be useful. That's why I'm thinking if maybe instead of using column.minWidth() and column.maxWidth, we should use min(config.presetWidths) and max(config.presetWidths). Help me decide. What do you think?

@jinliu
Copy link
Contributor Author

jinliu commented Feb 16, 2026

Yes, min(config.presetWidths) seems more useful. I guess the description should be changed accordingly to "Decrease column width to preset minimum"?

Copy link
Owner

@peterfajdiga peterfajdiga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! But I think the previous descriptions and variable and function names were better. They were more concise, yet descriptive enough, in my opinion.

The width is set to the maximum/minimum of preset widths.

work
@jinliu jinliu force-pushed the feature/column-width-max branch from 96db9f1 to d0e07b1 Compare February 22, 2026 14:16
@peterfajdiga
Copy link
Owner

I haven't noticed this last commit until now. Thank you, this looks great now!

Btw, the force push caused the commit history to be lost and Github didn't show me the diff between the last commit that I've reviewed and this latest one. Just FYI.

@peterfajdiga peterfajdiga merged commit b8650a2 into peterfajdiga:master Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants