File tree Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 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
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 ())
Original file line number Diff line number Diff line change 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 {
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}
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}
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}
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}
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}
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+ }
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments