From 0ab3db7403d3dd5fd0a9c5d9e784724a573d014a Mon Sep 17 00:00:00 2001 From: Shaurya Gupta Date: Sat, 16 Dec 2023 13:27:59 +0530 Subject: [PATCH] Make Side Bar position: sticky; --- app/assets/stylesheets/simple_discussion.scss | 5 +++++ app/views/layouts/simple_discussion.html.erb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/simple_discussion.scss b/app/assets/stylesheets/simple_discussion.scss index 7ec6a18..606f3ff 100644 --- a/app/assets/stylesheets/simple_discussion.scss +++ b/app/assets/stylesheets/simple_discussion.scss @@ -293,6 +293,11 @@ } } +.sidebar-sticky { + position: sticky; + top: 120px; +} + .thread-page-container { border: 1px solid #80808029; padding: 15px; diff --git a/app/views/layouts/simple_discussion.html.erb b/app/views/layouts/simple_discussion.html.erb index 529419b..ed9dedb 100644 --- a/app/views/layouts/simple_discussion.html.erb +++ b/app/views/layouts/simple_discussion.html.erb @@ -2,7 +2,7 @@

<%= t('community') %>

-
+