GoAdminGroup / go-admin

A golang framework helps gopher to build a data visualization and admin panel in ten minutes
https://www.go-admin.com
Apache License 2.0
8.23k stars 1.34k forks source link

[Question] How to horizontal scroll wide Tables in Info Panel #549

Open justfish09 opened 1 year ago

justfish09 commented 1 year ago

Description [describe your questions]

I have a very wide table with many fields. Since upgrading to the latest version (.23->.24) my tables do not have the horizontal scroll anymore and the table is cut off. Perhaps I missed a new config?

Example code [If you have any code info]

Others [screenshots or other info]

👇 cut off columns below:

Screenshot 2023-01-16 at 18 10 10

thenick775 commented 1 year ago

I've been adding custom html to the head to address this in certain areas of my app similar to this:

#pjax-container > section.content > div > div > div.box-body > table {
    min-width: 100px !important;
}

#pjax-container > section.content > div > div > div.box-body {
    overflow-x: auto;
}
yinxu2015 commented 3 months ago

modify DataTableAttribute and TableAttribute,calculate the fieldwidth then set new minwidth.