Skip to content

Use fixed width in matrix vis for space-padded fixed-length string arrays - #2029

Merged
axelboc merged 2 commits into
mainfrom
fixed-length
Aug 5, 2026
Merged

Use fixed width in matrix vis for space-padded fixed-length string arrays#2029
axelboc merged 2 commits into
mainfrom
fixed-length

Conversation

@axelboc

@axelboc axelboc commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Fix #2026

I added a check for space padding when computing the default cell width.

In all of our test files, I couldn't find one with an array of fixed-length strings! 😂

image

@axelboc axelboc changed the title Use fixed arbitrary width in matrix vis for all string arrays Use fixed width in matrix vis for space-padded fixed-length string arrays Aug 3, 2026
@axelboc
axelboc requested a review from loichuder August 3, 2026 15:06
@loichuder

Copy link
Copy Markdown
Member

The issue is still there for null-padded strings (see the dataset I provide in #2026)

Should we do the same for these?

@axelboc

axelboc commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Yeah I guess relying on the length at all is not very reliable. I'll just use a default width, then?

@loichuder

loichuder commented Aug 4, 2026

Copy link
Copy Markdown
Member

Yeah I guess relying on the length at all is not very reliable. I'll just use a default width, then?

We can compromise by computing the expected length and clamp it to a maximum value so the cell still looks like a cell on most screens (e.g. using the 300px value).

The user can anyway tune the width manually afterwards.

@axelboc
axelboc force-pushed the fixed-length branch 2 times, most recently from ea4a4d9 to 4ee2ffb Compare August 5, 2026 08:49
@axelboc
axelboc merged commit 00ac5df into main Aug 5, 2026
13 checks passed
@axelboc
axelboc deleted the fixed-length branch August 5, 2026 12:45
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.

[Matrix] Fixed-length string datasets may lead to a lot of blank space in cells

2 participants