Fixed Toast dispatch issues, improved layout
This commit is contained in:
parent
71d2c42aa7
commit
8d59c6fbeb
|
@ -3,9 +3,9 @@
|
|||
@inject IMessageDisplay Messages
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<div class="toast toast-start z-10" role="alert">
|
||||
<div class="toast toast-start z-10 whitespace-normal" role="alert">
|
||||
@foreach (var message in MessagesDisplayed) {
|
||||
<div class="alert @message.Type" @onclick="() => MessagesDisplayed.Remove(message)">
|
||||
<div class="alert @message.Type max-w-sm" @onclick="() => MessagesDisplayed.Remove(message)">
|
||||
@if (message.Title is null) {
|
||||
@message.Body
|
||||
} else {
|
||||
|
@ -25,7 +25,7 @@
|
|||
|
||||
private bool OnMessage(IMessageDisplay.Message message) {
|
||||
MessagesDisplayed.Add(message);
|
||||
StateHasChanged();
|
||||
InvokeAsync(StateHasChanged);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
2
Wave/wwwroot/css/main.min.css
vendored
2
Wave/wwwroot/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue