Skip to content

Commit

Permalink
Fix dashboard example so that the sticky sidebar has scrollable conte…
Browse files Browse the repository at this point in the history
…nt (#36608)
  • Loading branch information
techvanity committed Jun 29, 2022
1 parent 7f70fca commit d4aee02
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion site/content/docs/5.2/examples/dashboard-rtl/index.html
Expand Up @@ -28,7 +28,7 @@
<div class="container-fluid">
<div class="row">
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
<div class="position-sticky pt-3">
<div class="position-sticky pt-3 sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">
Expand Down
3 changes: 0 additions & 3 deletions site/content/docs/5.2/examples/dashboard/dashboard.css
Expand Up @@ -32,10 +32,7 @@ body {
}

.sidebar-sticky {
position: relative;
top: 0;
height: calc(100vh - 48px);
padding-top: .5rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}
Expand Down
3 changes: 0 additions & 3 deletions site/content/docs/5.2/examples/dashboard/dashboard.rtl.css
Expand Up @@ -28,10 +28,7 @@ body {
}

.sidebar-sticky {
position: relative;
top: 0;
height: calc(100vh - 48px);
padding-top: .5rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.2/examples/dashboard/index.html
Expand Up @@ -27,7 +27,7 @@
<div class="container-fluid">
<div class="row">
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
<div class="position-sticky pt-3">
<div class="position-sticky pt-3 sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">
Expand Down

0 comments on commit d4aee02

Please sign in to comment.