Skip to content

Commit 42d9e26

Browse files
authored
Merge pull request CactuseSecurity#3096 from SolidProgramming/issue_2993
Merge: show more clearly if everything is (horizontally) displayed
2 parents 3d8dfb8 + 6c40f84 commit 42d9e26

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-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 sticky-header" 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: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
/* !! ATTENTION: When changing the margin-top values of the custom-modal-x classes you
2+
HAVE to change the --bs-custom-modal-margin-top respectively
3+
or the sticky header for tables in the modals will look weird !!
4+
*/
5+
16
.custom-modal-fs {
27
--bs-modal-width: 100vw;
38
height: 100vh;
9+
--bs-custom-modal-margin-top: -3em;
410
}
511

612
.custom-modal-content-fs {
@@ -10,6 +16,7 @@
1016
.custom-modal-xl {
1117
max-width: 80vw;
1218
margin-top: 3em;
19+
--bs-custom-modal-margin-top: -3em;
1320
margin-left: auto;
1421
margin-right: auto;
1522
}
@@ -21,6 +28,7 @@
2128
.custom-modal-lg {
2229
max-width: 60vw;
2330
margin-top: 8em;
31+
--bs-custom-modal-margin-top: -8em;
2432
margin-left: auto;
2533
margin-right: auto;
2634
}
@@ -32,6 +40,7 @@
3240
.custom-modal-md {
3341
max-width: 40vw;
3442
margin-top: 12em;
43+
--bs-custom-modal-margin-top: -12em;
3544
margin-left: auto;
3645
margin-right: auto;
3746
}
@@ -43,6 +52,7 @@
4352
.custom-modal-sm {
4453
max-width: 30vw;
4554
margin-top: 16em;
55+
--bs-custom-modal-margin-top: -16em;
4656
margin-left: auto;
4757
margin-right: auto;
4858
}
@@ -54,6 +64,7 @@
5464
.custom-modal-xs {
5565
max-width: 30vw;
5666
margin-top: 16em;
67+
--bs-custom-modal-margin-top: -16em;
5768
margin-left: auto;
5869
margin-right: auto;
5970
}
@@ -78,5 +89,5 @@
7889
padding: 2em 2em 0 2em;
7990
background-color: rgba(255, 255, 255, 1);
8091
overflow-y: auto;
81-
overflow-x: hidden;
82-
}
92+
/*overflow-x: hidden;*/
93+
}

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,3 +539,19 @@ 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+
}
550+
551+
div.modal-body > div.table-responsive > table.sticky-header thead {
552+
top: calc(var(--bs-custom-modal-margin-top) + 1em - 1px);
553+
}
554+
555+
div.modal-body > * > div.table-responsive > table.sticky-header thead {
556+
top: calc(var(--bs-custom-modal-margin-top) + 1em - 1px);
557+
}

0 commit comments

Comments
 (0)