Skip to content

Commit

Permalink
UI - Fix scroll offset / 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 a16a702 commit 03151da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion changedetectionio/static/styles/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,13 @@ body.spinner-active {
}
}

.tabs ul li a {
// .tab-pane-inner will have the #id that the tab button jumps/anchors to
scroll-margin-top: 200px;
}

section.content {
padding-top: 5em;
padding-top: 100px;
padding-bottom: 1em;
flex-direction: column;
display: flex;
Expand Down Expand Up @@ -931,6 +936,7 @@ $form-edge-padding: 20px;
}

.tab-pane-inner {

&:not(:target) {
display: none;
}
Expand Down
5 changes: 4 additions & 1 deletion changedetectionio/static/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,11 @@ 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 {
scroll-margin-top: 200px; }

section.content {
padding-top: 5em;
padding-top: 100px;
padding-bottom: 1em;
flex-direction: column;
display: flex;
Expand Down

0 comments on commit 03151da

Please sign in to comment.