flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

Need to control 'table' tag's min width.

Open windows7lake opened this issue 4 years ago • 3 comments

Describe your feature request Need to control 'table' tag's min width.

Additional context layout_element.dart

          cells.add(GridPlacement(
            child: Container(
              width: double.infinity, // need to edit
              padding: child.style.padding ?? row.style.padding,
              decoration: BoxDecoration(
                color: child.style.backgroundColor ?? row.style.backgroundColor,
                border: child.style.border ?? row.style.border,
              ),

windows7lake avatar Sep 01 '21 01:09 windows7lake

Are you asking for the css property min-width support? See also #811 for a discussion on tables sizing.

erickok avatar Sep 01 '21 14:09 erickok

Yes, Will it be supported?

windows7lake avatar Sep 02 '21 00:09 windows7lake

I think we can support this quite easily for block style elements, though specifically for tables it is more tricky - see #811 for a discussion on that. Basically with a set width or min width we'd need to switch from a losse to an expand grid fit.

erickok avatar Sep 02 '21 07:09 erickok