Altinn / Altinn/app-frontend-react

Unwanted linebreak for numbers in table for Summary2

Open
#3,148 0 comments 1 reaction 0 assignees View on GitHub
area/summary kind/feature-request
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

There is no way to adjust the width of the columns in Summary2. In the component on the original page, I have specified f.ex. "width": "30%" on my columns. I would like this to be reflected in the Summary-component. An alternative is that the column width tries to keep **numeric** fields on only **one line**. I tried changing the "thousandSeparator" to "\u00A0", but it still insists on keeping the first column very wide. In my case it would probably have helped if I could hide the column "Kopier" (or change the text to blank " ") that originally contains CustomButtons.

![Image](https://github.com/user-attachments/assets/d51d4d54-5740-4c0b-8f49-b7bd0bd68369)

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the Summary2 and Summary component implementations and reproduce the table with numeric fields and the "Kopier" column described in the issue. Trace how column widths and numeric wrapping are calculated; done when numeric values remain on one line or the requested column-width behavior is supported without making the first column unnecessarily wide.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.