]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: update `min-height` inline style for modal with long content (#40870)
authorChristian Oliff <christianoliff@pm.me>
Tue, 24 Sep 2024 12:43:37 +0000 (21:43 +0900)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 12:43:37 +0000 (14:43 +0200)
site/content/docs/5.3/components/modal.md

index e00931e8162ec3fd37716eb247e9121f53b2145b..9f42f5aba3580f2c759d3e031cdd71623cc27dc3 100644 (file)
@@ -201,7 +201,7 @@ When modals become too long for the user's viewport or device, they scroll indep
         <h1 class="modal-title fs-5" id="exampleModalLongTitle">Modal title</h1>
         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
       </div>
-      <div class="modal-body" style="min-height: 1500px">
+      <div class="modal-body" style="min-height: 100vh">
         <p>This is some placeholder content to show the scrolling behavior for modals. Instead of repeating the text in the modal, we use an inline style to set a minimum height, thereby extending the length of the overall modal and demonstrating the overflow scrolling. When content becomes longer than the height of the viewport, scrolling will move the modal as needed.</p>
       </div>
       <div class="modal-footer">