Skip to content

Commit

Permalink
Fix sticky category in changelog page (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput authored Sep 8, 2023
1 parent b9fc0ce commit e6ca238
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion django_project/changes/static/js/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ $(".pop-gif").on("click", function() {

$('.sidebar-offcanvas').stick_in_parent({
offset_top: 60,
inner_scrolling: true
inner_scrolling: true,
bottoming: false
});
4 changes: 2 additions & 2 deletions django_project/changes/templates/version/detail-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1>
{% if version.image_file %}

<div class="row">
<div class="col-lg-10">
<div class="col-lg-10 col-sm-10">
<div class="row">
<div class="col-lg-12">
{% if not rst_download %}
Expand Down Expand Up @@ -107,7 +107,7 @@ <h2 class="text-muted">
</div>

{% if not rst_download %}
<div class="col-lg-2 sidebar-offcanvas" id="sidebar">
<div class="col-lg-2 col-sm-2 sidebar-offcanvas" id="sidebar">
<div class="list-group">
<div class="list-group-item" id="list-title">
Categories
Expand Down
11 changes: 11 additions & 0 deletions django_project/core/base_static/css/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,15 @@

.form-actions {
padding-bottom: 50px;
}

@media (min-width:768px) {
.sidebar-offcanvas {
float: right !important;
}
.sidebar-offcanvas .list-group {
height: 80vh;
overflow-y: auto;
overflow-x: hidden;
}
}

0 comments on commit e6ca238

Please sign in to comment.