MudBlazor / MudBlazor

Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
http://mudblazor.com
MIT License
8.17k stars 1.29k forks source link

Muddatagrid CellStyle Width cannot get smaller than 100px #6284

Open whann0205 opened 1 year ago

whann0205 commented 1 year ago

Bug type

Component

Component name

MudDataGrid

What happened?

I want to make the columns smaller than 100px but it does not work. You can easily see the problem by calling the "try" link.

Expected behavior

Want to have column width smaller than 100 px.

Reproduction link

https://try.mudblazor.com/snippet/mkwRamuUohjFvAtD

Reproduction steps

  1. Just create a new MudDataGrid
  2. Make a column
  3. Set Cellstyle = "width: 80px"
  4. See that it is not changed

Relevant log output

No response

Version (bug)

6.1.8

Version (working)

No response

What browsers are you seeing the problem on?

Other

On what operating system are you experiencing the issue?

Android

Pull Request

Code of Conduct

PaulTodd commented 1 year ago

You can change the header width to get the column smaller. I do this for my template columns since the default takes up SO MUCH space: `

        </TemplateColumn>`