diff --git a/src/SharpIDE.Photino/Components/DisplayNoneComponent.razor b/src/SharpIDE.Photino/Components/DisplayNoneComponent.razor
index c473d0d..2c06a4d 100644
--- a/src/SharpIDE.Photino/Components/DisplayNoneComponent.razor
+++ b/src/SharpIDE.Photino/Components/DisplayNoneComponent.razor
@@ -1,6 +1,6 @@
-
+
@ChildContent
-
+
@code {
[Parameter, EditorRequired]
@@ -9,5 +9,5 @@
[Parameter, EditorRequired]
public bool Visible { get; set; }
- private string GetStyle => Visible ? "display: inherit" : "display: none";
+ private string GetStyle => Visible ? "display: inherit; height: 100%" : "display: none";
}
diff --git a/src/SharpIDE.Photino/Components/RunPanel.razor b/src/SharpIDE.Photino/Components/RunPanel.razor
index 71e0682..b328bbb 100644
--- a/src/SharpIDE.Photino/Components/RunPanel.razor
+++ b/src/SharpIDE.Photino/Components/RunPanel.razor
@@ -1,4 +1,7 @@
-Run
+
+
+ Run
+
@code {
diff --git a/src/SharpIDE.Photino/Components/TerminalOutputDisplay.razor b/src/SharpIDE.Photino/Components/TerminalOutputDisplay.razor
index 961d5d1..c8f00f8 100644
--- a/src/SharpIDE.Photino/Components/TerminalOutputDisplay.razor
+++ b/src/SharpIDE.Photino/Components/TerminalOutputDisplay.razor
@@ -10,9 +10,9 @@
}
-
+
Terminal
-
+
@code {
@@ -34,6 +34,8 @@
},
};
+ private HashSet
_addons = ["addon-fit"];
+
protected override async Task OnInitializedAsync()
{
BuildService.BuildStarted += ClearPreviousOutput;
@@ -60,4 +62,28 @@
}
public void Dispose() => BuildService.BuildStarted -= ClearPreviousOutput;
+
+ private async Task OnFirstRender()
+ {
+ await _terminalRef.Addon("addon-fit").InvokeVoidAsync("fit");
+ _ = Task.Run(async () =>
+ {
+ try
+ {
+ while (true)
+ {
+ await Task.Delay(500).ConfigureAwait(false);
+ await InvokeAsync(async () =>
+ {
+ await _terminalRef.Addon("addon-fit").InvokeVoidAsync("fit");
+ });
+ }
+
+ }
+ catch (Exception e)
+ {
+ await DispatchExceptionAsync(e);
+ }
+ });
+ }
}
diff --git a/src/SharpIDE.Photino/Layout/MainLayout.razor b/src/SharpIDE.Photino/Layout/MainLayout.razor
index 0203ba3..6f69f8c 100644
--- a/src/SharpIDE.Photino/Layout/MainLayout.razor
+++ b/src/SharpIDE.Photino/Layout/MainLayout.razor
@@ -70,8 +70,8 @@
-
- @if (_solutionFilePath is not null && _selectedBottomPanel is not null)
+
+ @if (_solutionFilePath is not null)
{
diff --git a/src/SharpIDE.Photino/wwwroot/index.html b/src/SharpIDE.Photino/wwwroot/index.html
index ea57661..e854102 100644
--- a/src/SharpIDE.Photino/wwwroot/index.html
+++ b/src/SharpIDE.Photino/wwwroot/index.html
@@ -19,12 +19,14 @@
🗙
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+