Make critical table columns flex evenly
This commit is contained in:
@@ -749,7 +749,7 @@
|
|||||||
private static string BuildGridTemplateStyle(CriticalTableDetail detail)
|
private static string BuildGridTemplateStyle(CriticalTableDetail detail)
|
||||||
{
|
{
|
||||||
var dataColumnCount = detail.Columns.Count * Math.Max(detail.Groups.Count, 1);
|
var dataColumnCount = detail.Columns.Count * Math.Max(detail.Groups.Count, 1);
|
||||||
return $"grid-template-columns: 96px repeat({dataColumnCount}, minmax(190px, 250px));";
|
return $"grid-template-columns: max-content repeat({dataColumnCount}, minmax(0, 1fr));";
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string BuildColumnSpanStyle(int span) => $"grid-column: span {span};";
|
private static string BuildColumnSpanStyle(int span) => $"grid-column: span {span};";
|
||||||
|
|||||||
@@ -738,8 +738,8 @@ textarea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.critical-table-grid {
|
.critical-table-grid {
|
||||||
width: max-content;
|
width: 100%;
|
||||||
min-width: 100%;
|
min-width: max-content;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
border-top: 1px solid rgba(127, 96, 55, 0.2);
|
border-top: 1px solid rgba(127, 96, 55, 0.2);
|
||||||
border-left: 1px solid rgba(127, 96, 55, 0.2);
|
border-left: 1px solid rgba(127, 96, 55, 0.2);
|
||||||
|
|||||||
Reference in New Issue
Block a user