diff --git a/hospexplorer/ask/static/css/styles.css b/hospexplorer/ask/static/css/styles.css index 07c61b4..42db981 100644 --- a/hospexplorer/ask/static/css/styles.css +++ b/hospexplorer/ask/static/css/styles.css @@ -10870,3 +10870,36 @@ body.sb-sidenav-toggled #wrapper #sidebar-wrapper { margin-left: -15rem; } } + +/* Recent Questions Sidebar Styles */ +#sidebar-wrapper { + display: flex; + flex-direction: column; +} + +#sidebar-wrapper .list-group { + flex: 1; + overflow-y: auto; + max-height: calc(100vh - 180px); +} + +#sidebar-wrapper .question-item { + font-size: 0.875rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + border-left: 3px solid transparent; + transition: border-color 0.2s, background-color 0.2s; +} + +#sidebar-wrapper .question-item:hover { + border-left-color: #0d6efd; + background-color: #f8f9fa; +} + +#sidebar-wrapper .sidebar-section-heading { + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.05em; + font-size: 0.75rem; +} diff --git a/hospexplorer/ask/static/js/scripts.js b/hospexplorer/ask/static/js/scripts.js index 81efcaa..2bb1fb5 100644 --- a/hospexplorer/ask/static/js/scripts.js +++ b/hospexplorer/ask/static/js/scripts.js @@ -3,9 +3,9 @@ * Copyright 2013-2023 Start Bootstrap * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-simple-sidebar/blob/master/LICENSE) */ -// +// // Scripts -// +// window.addEventListener('DOMContentLoaded', event => { diff --git a/hospexplorer/ask/templates/_base.html b/hospexplorer/ask/templates/_base.html index 6665c53..91c7a7c 100644 --- a/hospexplorer/ask/templates/_base.html +++ b/hospexplorer/ask/templates/_base.html @@ -17,14 +17,30 @@
-