aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-11 14:58:18 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commit8c0984c22000b27d84b8e2d883f8f1dacf6c6208 (patch)
treefd27057b0700b225f4f5f81bce244e39bf5529d5 /vnext/src/components
parentbc55f621779d73e45aaefe6861cb7cdc393fade4 (diff)
Trying to fix ios scrolling
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/Feeds.js2
-rw-r--r--vnext/src/components/Thread.js2
-rw-r--r--vnext/src/components/UserInfo.css6
3 files changed, 6 insertions, 4 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index 55a4c287..538bfe7b 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -81,8 +81,6 @@ function Feed(props) {
}, [props.visitor, props.location]);
let loadMessages = (hash = '', filter = '') => {
- document.body.scrollTop = 0;
- document.documentElement.scrollTop = 0;
setMsgs([]);
const filterParams = qs.parse(filter);
let params = Object.assign({}, filterParams || {}, props.query.search || {});
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js
index f94ad358..2c88abc3 100644
--- a/vnext/src/components/Thread.js
+++ b/vnext/src/components/Thread.js
@@ -32,8 +32,6 @@ export default class Thread extends React.Component {
this.loadReplies();
}
loadReplies() {
- document.body.scrollTop = 0;
- document.documentElement.scrollTop = 0;
this.setState({ replies: [], loading: true });
const { mid } = this.props.match.params;
let params = {
diff --git a/vnext/src/components/UserInfo.css b/vnext/src/components/UserInfo.css
index e57b4585..5bb913ac 100644
--- a/vnext/src/components/UserInfo.css
+++ b/vnext/src/components/UserInfo.css
@@ -2,3 +2,9 @@
padding: 40px;
background-color: #fdfdfe;
}
+.info-avatar img {
+ max-height: 24px;
+ max-width: 24px;
+ padding: 6px;
+ vertical-align: middle;
+}