Skip to content

Commit

Permalink
additional visual improvement on AxoComponent and AxoMessenger details
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Kytka committed Oct 24, 2023
1 parent 56a5096 commit 8eec1d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
@using AXSharp.Presentation.Blazor.Controls.Layouts.TabControlComponents;
@inherits RenderableComplexComponentBase<AxoComponent>;

<div class="card">

<div class="card border border-4 m-3 p-3 rounded-3">
<div class="card-header d-flex">
<div class="p-0 w-100"><h5>@Component.AttributeName</h5></div>
<div class="p-1 flex-shrink-1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

@if (Component.State > eAxoMessengerState.Idle)
{
<div class="container text-center">
@if (!OnlyAlarmView)
{
<div class="container text-center border border-2 m-3 rounded-3 border-danger">


<div class="row">
<div class="d-flex align-end me-2 mt-2 mb-2">
<div class="btn-group">
Expand All @@ -31,15 +31,14 @@
</button>
</div>
</div>
</div>
}
else
</div>
@if (!OnlyAlarmView)
{
<div class="row">
<RenderableContentControl Context="Component.Component" Presentation="Command"></RenderableContentControl>
<button class="btn @BackgroundColor" type="button" @onclick="ToggleComponentView">
@* <button class="btn @BackgroundColor" type="button" @onclick="ToggleComponentView">
<span class="oi oi-x" aria-hidden="true" />
</button>
</button> *@
</div>

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private string GetHelpText()
return retVal;
}

private bool OnlyAlarmView { get; set; }
private bool OnlyAlarmView { get; set; } = true;

private void ToggleComponentView()
{
Expand All @@ -246,7 +246,7 @@ private void ToggleComponentView()

private void ToggleAlarmView()
{
this.OnlyAlarmView = true;
this.OnlyAlarmView = !this.OnlyAlarmView;
}
}

Expand Down

0 comments on commit 8eec1d7

Please sign in to comment.