Skip to content

Commit

Permalink
feat: make Side Bar position: sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt authored Jan 6, 2024
2 parents 2d727bc + 0ab3db7 commit 71ac9fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/simple_discussion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@
}
}

.sidebar-sticky {
position: sticky;
top: 120px;
}

.thread-page-container {
border: 1px solid #80808029;
padding: 15px;
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/simple_discussion.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1 class="community-heading"><%= t('community') %></h1>
<div class="row simple_discussion mt-2">
<div class="col-md-2 mb-3">
<div class="col">
<div class="col sidebar-sticky">
<%= link_to t('ask_a_question'), simple_discussion.new_forum_thread_path, class: "btn forum-primary-btn btn-block mb-4" %>

<div class="forum-thread-filters">
Expand Down

0 comments on commit 71ac9fd

Please sign in to comment.