Merge pull request #767 from PoisnFang/fix-pane-div-default-class
add default class 'container' for div in pane to avoid content squishing
This commit is contained in:
commit
bc72e28d11
|
@ -4,16 +4,21 @@
|
|||
@inject IModuleService ModuleService
|
||||
@inject IModuleDefinitionService ModuleDefinitionService
|
||||
|
||||
<div class="@_paneadminborder">
|
||||
@if (_panetitle != "")
|
||||
@if (_useadminborder)
|
||||
{
|
||||
<div class="@_paneadminborder">
|
||||
@((MarkupString)_panetitle)
|
||||
}
|
||||
@DynamicComponent
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
@DynamicComponent
|
||||
}
|
||||
|
||||
@code {
|
||||
private string _paneadminborder = "";
|
||||
private bool _useadminborder = false;
|
||||
private string _paneadminborder = "container";
|
||||
private string _panetitle = "";
|
||||
|
||||
[CascadingParameter]
|
||||
|
@ -28,12 +33,13 @@
|
|||
{
|
||||
if (PageState.EditMode && UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, PageState.Page.Permissions) && Name != Constants.AdminPane)
|
||||
{
|
||||
_useadminborder = true;
|
||||
_paneadminborder = "app-pane-admin-border";
|
||||
_panetitle = "<div class=\"app-pane-admin-title\">" + Name + " Pane</div>";
|
||||
}
|
||||
else
|
||||
{
|
||||
_paneadminborder = "";
|
||||
_paneadminborder = "container";
|
||||
_panetitle = "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user