Align numbers
All checks were successful
Build Docker Images / test (map[name:Morska plugin_project:DiunaBI.Plugins.Morska]) (push) Successful in 1m43s
Build Docker Images / test (map[name:PedrolloPL plugin_project:DiunaBI.Plugins.PedrolloPL]) (push) Successful in 1m30s
Build Docker Images / build-and-push (map[image_suffix:morska name:Morska plugin_project:DiunaBI.Plugins.Morska]) (push) Successful in 1m50s
Build Docker Images / build-and-push (map[image_suffix:pedrollopl name:PedrolloPL plugin_project:DiunaBI.Plugins.PedrolloPL]) (push) Successful in 1m46s

This commit is contained in:
2025-12-12 09:03:11 +01:00
parent 972feb2d8c
commit b17fdae56e
2 changed files with 13 additions and 3 deletions

View File

@@ -197,6 +197,16 @@ public partial class Details : ComponentBase, IDisposable
return NumberFormatHelper.FormatNumber(value);
}
private string GetColumnStyle(string columnName)
{
// Align numeric columns (Value1, Value2, etc.) to the left
if (columnName.StartsWith("Value"))
{
return "text-align: left;";
}
return string.Empty;
}
private double? GetRecordValueByName(RecordDto record, string columnName)
{
var property = typeof(RecordDto).GetProperty(columnName, BindingFlags.Public | BindingFlags.Instance);