From 2de91c998c9cf1df53d0e9a2d335a3f3bf02707d Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Sat, 30 Mar 2024 22:40:46 +0100 Subject: [PATCH] Show-raise; bigger show x buttons --- issues/templates/issues/issue_stacktrace.html | 9 +++++---- static/js/issue_stacktrace.js | 12 ++++++++++++ theme/static/css/dist/styles.css | 8 ++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/issues/templates/issues/issue_stacktrace.html b/issues/templates/issues/issue_stacktrace.html index b31ee9e..6cd2ff1 100644 --- a/issues/templates/issues/issue_stacktrace.html +++ b/issues/templates/issues/issue_stacktrace.html @@ -17,9 +17,10 @@ {% if forloop.counter0 == 0 %}
- - - + + + +
{% endif %} @@ -47,7 +48,7 @@ {# per frame header div #} -
{# collapsable part #}
{# convience div for padding & border; the border is basically the top-border of the next header #} diff --git a/static/js/issue_stacktrace.js b/static/js/issue_stacktrace.js index 337ffa5..f922c35 100644 --- a/static/js/issue_stacktrace.js +++ b/static/js/issue_stacktrace.js @@ -119,6 +119,18 @@ function showInAppFrames() { }); } +function showRaisingFrame() { + document.querySelectorAll(".js-frame-details").forEach((frameDetails) => { + if (frameDetails.classList.contains("js-raising-frame")) { + expandSection(frameDetails); + frameDetails.parentNode.querySelector(".js-chevron").classList.add("rotate-180"); + } else { + collapseSection(frameDetails); + frameDetails.parentNode.querySelector(".js-chevron").classList.remove("rotate-180"); + } + }); +} + function hideAllFrames() { document.querySelectorAll(".js-frame-details").forEach((frameDetails) => { collapseSection(frameDetails); diff --git a/theme/static/css/dist/styles.css b/theme/static/css/dist/styles.css index cb1b220..1966e2d 100644 --- a/theme/static/css/dist/styles.css +++ b/theme/static/css/dist/styles.css @@ -1303,6 +1303,14 @@ select { padding-top: 2rem; } +.pb-1 { + padding-bottom: 0.25rem; +} + +.pt-1 { + padding-top: 0.25rem; +} + .text-left { text-align: left; }