microsoft / microsoft/aspire

Markdown Code block in Interaction Service notification looks odd

Open
#14,414 2 comments 0 reactions 0 assignees View on GitHub
area-dashboard interaction-service
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

Including a code block inside an interaction service notification is formatted a bit odd - the `code` label and copy icons look out of place.

Image

### Expected Behavior

The spacing looks a bit too much, the `code` label doesn't need it's own line, nor does the `copy` icon.

### Steps To Reproduce

```cs
_ = interactionService.PromptNotificationAsync(
"Container runtime unhealthy",
$"""
Docker desktop failed to start. Please start it manually.
```
{new StackTrace()}
```
""",
new NotificationInteractionOptions
{
Intent = intent,
ShowDismiss = cancellationToken == default,
EnableMessageMarkdown = true
},
cancellationToken);
```

### Exceptions (if any)

_No response_

### .NET Version info

Aspire version: 13.1.0+8a4db1775c3fbae1c602022b636299cb04971fde

### Anything else?

Somewhat related to #11370 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.