Skip to content

Commit

Permalink
Merge branch 'master' into sidebar-allignment-fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak05kr18 committed Jan 10, 2024
2 parents 3bdee9b + 71ac9fd commit 11553d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
en:
start_a_discussion: Start A Discussion
add_a_comment: Add a comment...
add_a_comment: Add a comment
ask_a_question: Ask A Question
asked_time_ago: "Asked %{time} ago by %{author}"
choose_a_category: Choose a Category
Expand Down

0 comments on commit 11553d6

Please sign in to comment.