Skip to content

Commit b259b2c

Browse files
[~] Modal containing tables will now be scrollable from table parent(modal body/modal content) CactuseSecurity#2993
1 parent 1ffe959 commit b259b2c

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

roles/ui/files/FWO.UI/Pages/NetworkModelling/ShowHistory.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@attribute [Authorize(Roles = $"{Roles.Admin}, {Roles.Auditor}")]
1+
@attribute [Authorize(Roles = $"{Roles.Admin}, {Roles.Auditor}")]
22

33
@inject ApiConnection apiConnection
44
@inject UserConfig userConfig
@@ -23,7 +23,7 @@
2323
</Authorized>
2424
</AuthorizeView>
2525
<PageSizeComponent PageSizeCallback="UpdatePageSize"></PageSizeComponent>
26-
<Table PageSize="PageSize" class="table table-bordered th-bg-secondary table-responsive overflow-auto sticky-header" TableItem="ModellingHistoryEntry" Items="history">
26+
<Table PageSize="PageSize" class="table table-bordered th-bg-secondary table-responsive" TableItem="ModellingHistoryEntry" Items="history">
2727
<Column TableItem="ModellingHistoryEntry" Title="@(userConfig.GetText("application"))" Field="@(x => x.AppId)" Sortable="true" Filterable="true">
2828
<Template>
2929
@(Applications.FirstOrDefault(x => x.Id == context.AppId)?.Name ?? context.AppId.ToString())

roles/ui/files/FWO.UI/Shared/PopUp.razor.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@
7878
padding: 2em 2em 0 2em;
7979
background-color: rgba(255, 255, 255, 1);
8080
overflow-y: auto;
81-
overflow-x: hidden;
82-
}
81+
/*overflow-x: hidden;*/
82+
}

roles/ui/files/FWO.UI/wwwroot/css/site.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,3 +539,11 @@ max-width: 99%;
539539
{
540540
padding-bottom: 30px;
541541
} */
542+
543+
div.modal-body > div.table-responsive {
544+
overflow-x: inherit;
545+
}
546+
547+
div.modal-body > * > div.table-responsive {
548+
overflow-x: inherit;
549+
}

0 commit comments

Comments
 (0)