makeplane / plane

🔥 🔥 🔥 Open Source JIRA, Linear, Monday, and Asana Alternative. Plane helps you track your issues, epics, and product roadmaps in the simplest way possible.
http://plane.so
GNU Affero General Public License v3.0
29.49k stars 1.62k forks source link

[WEB-1718] style: fix spreadsheet column width when other properties are hidden. #4943

Closed prateekshourya29 closed 3 months ago

prateekshourya29 commented 3 months ago

Problem

When the user deselects all properties except "State" in the spreadsheet view, the state column does not display correctly. This issue arose from the recent fix in #4859. We added the max width for the state column and did not considered the situation when other properties are hidden, causing the table to expand to full width while the state column remains constrained by a max width, resulting in unusual white space.

Solution

Adjusted the CSS logic to ensure the state column expands appropriately when it is the only visible column while also handling the max width.

Media

Issue link: [WEB-1718

](https://app.plane.so/plane/projects/02c3e1d5-d7e2-401d-a773-45ecba45d745/issues/fb6c5091-72c4-4e97-9937-12bbd6fb729d)