mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 09:58:13 +01:00
UI: Fix standalone confirmation modal
This commit is contained in:
parent
fc14f418cb
commit
9aff143d40
2 changed files with 6 additions and 7 deletions
|
@ -7,18 +7,19 @@
|
||||||
|
|
||||||
@section PageHeadContent {
|
@section PageHeadContent {
|
||||||
<style>
|
<style>
|
||||||
body > .content-wrapper { display: flex; min-height: 100vh; }
|
body > .content-wrapper { flex-grow: 1; display: flex; }
|
||||||
|
body > .content-wrapper, body > .content-wrapper > .container { flex-grow:1; }
|
||||||
.modal-dialog .btn-close { display: none; }
|
.modal-dialog .btn-close { display: none; }
|
||||||
</style>
|
</style>
|
||||||
}
|
}
|
||||||
|
|
||||||
@section PageFootContent {
|
@section PageFootContent {
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('ConfirmCancel').addEventListener('click', function () {
|
delegate('click', '#ConfirmCancel', function () {
|
||||||
history.back();
|
history.back();
|
||||||
return false;
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
}
|
}
|
||||||
|
<div class="modal position-static d-block" tabindex="-1">
|
||||||
<partial name="ConfirmModal" model="Model" />
|
<partial name="ConfirmModal" model="Model" />
|
||||||
|
</div>
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="d-flex flex-column min-vh-100">
|
<body class="d-flex flex-column min-vh-100">
|
||||||
<section class="content-wrapper flex-grow-1">
|
<section class="content-wrapper flex-grow-1">
|
||||||
@*Dummy navbar-brand, hackish way to keep test AssertNoError passing*@
|
|
||||||
<div class="navbar-brand d-none"></div>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@RenderBody()
|
@RenderBody()
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue