mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 17:33:18 +00:00
[user setting] modification
This commit is contained in:
@@ -34,7 +34,7 @@ body {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.setting-item {
|
.setting-item {
|
||||||
margin: 1em 0 2em;
|
margin: 1em 0 3em;
|
||||||
}
|
}
|
||||||
.setting-item-heading {
|
.setting-item-heading {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
@@ -97,7 +97,7 @@ class Settings extends React.Component {
|
|||||||
handleContentScroll = (e) => {
|
handleContentScroll = (e) => {
|
||||||
const scrollTop = e.target.scrollTop;
|
const scrollTop = e.target.scrollTop;
|
||||||
const scrolled = this.sideNavItems.filter((item, index) => {
|
const scrolled = this.sideNavItems.filter((item, index) => {
|
||||||
return item.show && document.getElementById(item.href.substr(1)).offsetTop - 30 < scrollTop;
|
return item.show && document.getElementById(item.href.substr(1)).offsetTop - 45 < scrollTop;
|
||||||
});
|
});
|
||||||
if (scrolled.length) {
|
if (scrolled.length) {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
Reference in New Issue
Block a user