|
15 | 15 | else
|
16 | 16 | {
|
17 | 17 | <span class="grid-value" title="@(ToolTip ?? Value)" id="@_cellTextId">
|
18 |
| - @ContentBeforeValue |
19 |
| - @if (EnableHighlighting && !string.IsNullOrEmpty(HighlightText)) |
| 18 | + @if (ContentBeforeValue == null && ContentAfterValue == null && string.IsNullOrEmpty(Value)) |
20 | 19 | {
|
21 |
| - <FluentHighlighter HighlightedText="@HighlightText" Text="@Value" /> |
| 20 | + <span class="empty-data"></span> |
22 | 21 | }
|
23 |
| - else if (_formattedValue != null) |
| 22 | + else |
24 | 23 | {
|
25 |
| - @((MarkupString)_formattedValue) |
26 |
| - } |
27 |
| - @ContentAfterValue |
| 24 | + @ContentBeforeValue |
| 25 | + if (EnableHighlighting && !string.IsNullOrEmpty(HighlightText)) |
| 26 | + { |
| 27 | + <FluentHighlighter HighlightedText="@HighlightText" Text="@Value" /> |
| 28 | + } |
| 29 | + else if (_formattedValue != null) |
| 30 | + { |
| 31 | + @((MarkupString)_formattedValue) |
| 32 | + } |
| 33 | + @ContentAfterValue |
| 34 | + } |
28 | 35 | </span>
|
29 | 36 | }
|
30 | 37 |
|
|
49 | 56 | </FluentButton>
|
50 | 57 |
|
51 | 58 | <FluentMenu Anchor="@_menuAnchorId" @bind-Open="_isMenuOpen" VerticalThreshold="170" HorizontalPosition="HorizontalPosition.End">
|
52 |
| - <FluentMenuItem |
53 |
| - Id="@_copyId" |
54 |
| - AdditionalAttributes="@FluentUIExtensions.GetClipboardCopyAdditionalAttributes(ValueToCopy ?? Value, PreCopyToolTip, PostCopyToolTip, uncapturedCopyAttributes)"> |
| 59 | + <FluentMenuItem Id="@_copyId" |
| 60 | + Disabled="@(ValueToCopy is null && Value is null)" |
| 61 | + AdditionalAttributes="@FluentUIExtensions.GetClipboardCopyAdditionalAttributes(ValueToCopy ?? Value, PreCopyToolTip, PostCopyToolTip, uncapturedCopyAttributes)"> |
55 | 62 | <span slot="start">
|
56 | 63 | <FluentIcon Style="vertical-align: text-bottom" Icon="Icons.Regular.Size16.Copy" />
|
57 | 64 | </span>
|
58 | 65 | @PreCopyToolTip
|
59 | 66 | </FluentMenuItem>
|
60 | 67 |
|
61 |
| - <FluentMenuItem |
62 |
| - Disabled="@(ValueToVisualize is null && Value is null)" |
63 |
| - AdditionalAttributes="@FluentUIExtensions.GetOpenTextVisualizerAdditionalAttributes(ValueToVisualize ?? Value!, !string.IsNullOrEmpty(TextVisualizerTitle) ? TextVisualizerTitle : ValueDescription)"> |
| 68 | + <FluentMenuItem Disabled="@(ValueToVisualize is null && Value is null)" |
| 69 | + AdditionalAttributes="@FluentUIExtensions.GetOpenTextVisualizerAdditionalAttributes(ValueToVisualize ?? Value!, !string.IsNullOrEmpty(TextVisualizerTitle) ? TextVisualizerTitle : ValueDescription)"> |
64 | 70 | <span slot="start">
|
65 | 71 | <FluentIcon Style="vertical-align: text-bottom" Icon="Icons.Regular.Size16.Open" />
|
66 | 72 | </span>
|
|
0 commit comments