diff --git a/Client/Shared/CodeCell.razor b/Client/Shared/CodeCell.razor
index a053899..47731ad 100644
--- a/Client/Shared/CodeCell.razor
+++ b/Client/Shared/CodeCell.razor
@@ -4,34 +4,34 @@
@inject HttpClient Http
-
@code {
@@ -41,6 +41,9 @@
private ExecuteResult result;
private bool isEvaluating;
+ private string ResultCssClass
+ => !string.IsNullOrEmpty(result?.CommandFailedMessage) ? "command-failed" : null;
+
private async Task RunCell()
{
try
diff --git a/Client/Shared/CodeCell.razor.css b/Client/Shared/CodeCell.razor.css
index 1c100f0..b62b6b4 100644
--- a/Client/Shared/CodeCell.razor.css
+++ b/Client/Shared/CodeCell.razor.css
@@ -1,14 +1,10 @@
.code-cell {
- display: flex;
- flex: 0 0 100%;
- flex-wrap: wrap;
margin: 10px;
border: 1px solid #bfbfbf;
}
-.break {
- flex-basis: 100%;
- height: 0;
+.top {
+ display: flex;
}
input {
@@ -27,7 +23,6 @@ input {
}
.output {
- width: 100%;
padding: 10px;
background-color: #eee;
}