Skip to content

Commit

Permalink
UI - More work on tab buttons hiding behind menu/header :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed Oct 11, 2024
1 parent f7d4e58 commit ecafa27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions changedetectionio/static/js/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ function set_active_tab() {
if (tab.length) {
tab[0].parentElement.className = "active";
}
// hash could move the page down
window.scrollTo(0, 0);

}

function focus_error_tab() {
Expand Down
2 changes: 1 addition & 1 deletion changedetectionio/static/styles/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ body.spinner-active {
}


.tabs ul li a {
.tab-pane-inner {
// .tab-pane-inner will have the #id that the tab button jumps/anchors to
scroll-margin-top: 200px;
}
Expand Down
3 changes: 1 addition & 2 deletions changedetectionio/static/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,7 @@ body.spinner-active #pure-menu-horizontal-spinner {
background-color: var(--color-background-menu-link-hover);
color: var(--color-text-menu-link-hover); }


.tabs ul li a {
.tab-pane-inner {
scroll-margin-top: 200px; }

section.content {
Expand Down

0 comments on commit ecafa27

Please sign in to comment.