mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Web: Scroll hash-fragment links with navbar height (#7456)
Previously, hash-fragment links like this: http://mark-t510:9090/targets#job-alertmanager Would scroll to have the header at the top, obscured by the nav bar. Tested in both old and new UIs. Fixes #7434 Signed-off-by: Mark Hansen <markhansen@google.com>
This commit is contained in:
parent
d17d88935c
commit
f0a439bfc5
|
@ -1,3 +1,9 @@
|
|||
html {
|
||||
/* https://github.com/prometheus/prometheus/issues/7434 */
|
||||
/* Scroll to hash-fragment-links counting the fixed navbar 40px tall with 16px padding */
|
||||
scroll-padding-top: 56px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
html {
|
||||
/* https://github.com/prometheus/prometheus/issues/7434 */
|
||||
/* Scroll to hash-fragment-links counting the fixed navbar 40px tall + 16px padding */
|
||||
scroll-padding-top: 56px;
|
||||
}
|
||||
|
||||
/* Move down content because we have a fixed navbar that is 50px tall with 20px padding */
|
||||
body {
|
||||
padding-top: 70px;
|
||||
|
|
Loading…
Reference in a new issue