Skip to content

Commit

Permalink
Added text-ellipsis to the long columns (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVuscanNx authored Nov 24, 2023
1 parent 279241e commit c6c8d11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<MudContainer MaxWidth="MaxWidth.False">
<PageHeading Text="Workflow definitions"/>

<div id="workflow-file-upload-button-wrapper" class="d-none">
<MudFileUpload T="IReadOnlyList<IBrowserFile>" FilesChanged="@OnFilesSelected"/>
</div>
Expand All @@ -15,12 +15,12 @@
@ref="_table"
T="WorkflowDefinitionRow"
ServerData="ServerReload"
Dense="true"
Dense="true"
Hover="true"
Elevation="0"
OnRowClick="@OnRowClick"
OnRowClick="@OnRowClick"
RowStyle="cursor: pointer;"
MultiSelection="true"
MultiSelection="true"
SelectOnRowClick="false"
@bind-SelectedItems="_selectedRows">
<ToolBarContent>
Expand All @@ -31,7 +31,7 @@
<MudMenuItem OnClick="@OnBulkExportClicked">Export</MudMenuItem>
</MudMenu>
<MudSpacer/>

<MudButtonGroup Color="Color.Primary" Variant="Variant.Filled" DisableElevation="false">
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="@OnCreateWorkflowClicked">Create workflow</MudButton>
<MudMenu Icon="@Icons.Material.Filled.ArrowDropDown">
Expand All @@ -40,7 +40,7 @@
</MudTooltip>
</MudMenu>
</MudButtonGroup>

</ToolBarContent>
<HeaderContent>
<MudTh>
Expand All @@ -62,10 +62,10 @@
</HeaderContent>
<RowTemplate>
<MudTd DataLabel="ID">@context.DefinitionId</MudTd>
<MudTd DataLabel="Name">@context.Name</MudTd>
<MudTd DataLabel="Name" Style="text-overflow: ellipsis; overflow: hidden; max-width:200px; white-space: nowrap;">@context.Name</MudTd>
<MudTd DataLabel="Latest version" Style="text-align:left">@context.LatestVersion</MudTd>
<MudTd DataLabel="Published version" Style="text-align:left">@(context.PublishedVersion?.ToString() ?? "-")</MudTd>
<MudTd DataLabel="Description">@context.Description</MudTd>
<MudTd DataLabel="Description" Style="text-overflow: ellipsis; overflow: hidden; max-width:200px; white-space: nowrap;">@context.Description</MudTd>
<MudTd DataLabel="" Style="text-align:right">
<MudMenu Icon="@Icons.Material.Filled.MoreVert">
<MudMenuItem Icon="@Icons.Material.Outlined.Edit" OnClick="@(() => OnEditClicked(context.DefinitionId))">Edit</MudMenuItem>
Expand All @@ -75,7 +75,7 @@
<MudMenuItem Icon="@Icons.Material.Outlined.CloudDownload" OnClick="@(() => OnRetractClicked(context.DefinitionId))">Unpublish</MudMenuItem>
<MudDivider DividerType="DividerType.FullWidth"></MudDivider>
<MudMenuItem Icon="@Icons.Material.Outlined.FileDownload" OnClick="@(() => OnDownloadClicked(context))">Download</MudMenuItem>

</MudMenu>
</MudTd>
</RowTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@
</HeaderContent>
<RowTemplate>
<MudTd DataLabel="ID">@context.WorkflowInstanceId</MudTd>
<MudTd DataLabel="Correlation ID">@context.CorrelationId</MudTd>
<MudTd DataLabel="Workflow">@context.WorkflowDefinition.Name</MudTd>
<MudTd DataLabel="Correlation ID" Style="text-overflow: ellipsis; overflow: hidden; max-width:200px; white-space: nowrap;">@context.CorrelationId</MudTd>
<MudTd DataLabel="Workflow" Style="text-overflow: ellipsis; overflow: hidden; max-width:200px; white-space: nowrap;">@context.WorkflowDefinition.Name</MudTd>
<MudTd DataLabel="Version">@context.Version</MudTd>
<MudTd DataLabel="Name">@context.Name</MudTd>
<MudTd DataLabel="Name" Style="text-overflow: ellipsis; overflow: hidden; max-width:200px; white-space: nowrap;">@context.Name</MudTd>
<MudTd DataLabel="SubStatus">
<MudChip Color="@GetSubStatusColor(context.SubStatus)" Variant="Variant.Text">
@context.SubStatus
Expand Down

0 comments on commit c6c8d11

Please sign in to comment.