ant-design-blazor / ant-design-blazor

🌈A set of enterprise-class UI components based on Ant Design and Blazor.

Home Page:https://antblazor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimum Table Width

coolmint123 opened this issue · comments

Dear Developers,

I want to use Table on Android, but the screen gets distorted.
I would like you to improve the minimum width limit a bit more.

   <Table TableLayout="fixed" Responsive="false" DataSource="@Items" TItem="Item">
       <Selection />
        <PropertyColumn Property="c => c.Code" Title="Code" />
        <PropertyColumn Property="c => c.Name" Title="Name"/>
    </Table>

    public class Item
    {
        public int Code { get; set; }
        public string? Name { get; set; }
    }
    public List<Item> Items { get; set; } = new();
    
    protected override void OnInitialized()
    {
        Items = new List<Item> { new() { Code = 0, Name = "a" }, new() { Code = 1, Name = "b" } };
    }

Portrait
Landscape