summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2025-05-26 07:15:12 +0000
committerGo MAEDA <maeda@farend.jp>2025-05-26 07:15:12 +0000
commit54928663a87015d5579cfd0848dec6d56c5d6fa2 (patch)
tree4d6dab8b459a5c2c9bfaaa1434f231d229738385
parent3090bf6906de7133df95713677fd1c2e9ed0d847 (diff)
downloadredmine-54928663a87015d5579cfd0848dec6d56c5d6fa2.tar.gz
redmine-54928663a87015d5579cfd0848dec6d56c5d6fa2.zip
Fix anchor-linked content being hidden behind the sticky issue header (#42684, #42774).
Patch by Mizuki ISHIKAWA (user:ishikawa999). git-svn-id: https://svn.redmine.org/redmine/trunk@23799 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/assets/stylesheets/application.css6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index 6571c05d1..5eccaacb4 100644
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -795,6 +795,12 @@ div.journal span.update-info {color: #666; font-size: 0.9em;}
#history div:target h4.note-header {background-color:#DDEEFF;}
#history p.nodata {display: none;}
+/* Prevent content from being hidden behind a #sticky-issue-header when scrolling via anchor links. */
+.controller-issues.action-show div.wiki a[name],
+.controller-issues.action-show #history div[id^="note-"],
+.controller-issues.action-show #history div[id^="change-"] {
+ scroll-margin-top: 50px;
+}
div#activity dl, #search-results { margin-left: 2em; }
div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 22px; font-size: 0.8125rem;}