Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #836 from swarmcity/sc-nightly
Browse files Browse the repository at this point in the history
State of testing site
  • Loading branch information
xardass authored Oct 3, 2018
2 parents cb2f560 + e156163 commit d8b4b15
Show file tree
Hide file tree
Showing 15 changed files with 898 additions and 735 deletions.
427 changes: 214 additions & 213 deletions src/displays/display-backup.html

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/displays/display-complete-reply.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@
*/
_replyToIpfs() {
if (this.privateKey) {
this.hashtagItem.replies = this.hashtagItem.replies || {};
if (!this.hashtagItem.replies) {
this.hashtagItem.replies = {};
}
this.hashtagItem.replies[this.address] = {
address: this.address,
avatarHash: this.avatarHash,
Expand Down
18 changes: 13 additions & 5 deletions src/displays/display-hashtag-simpledeal.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@
background-image: var(--sc-bg);
z-index: 99;
position: sticky;
position: -webkit-sticky;
top: 158px;
width: 100%;
box-sizing: border-box;
padding: 0px 36px 15px 36px;
}

.container[wide-layout] .middle {
position: -webkit-sticky;
position: sticky;
top: 172px;
padding: 0px 0 10px 10vw;
Expand Down Expand Up @@ -201,7 +203,13 @@
opacity: 0.15;
}


@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-resolution: 240dpi) {
.icon-scroll {
@apply --retina;
}
}

</style>
<iron-media-query query="(min-width: 600px)" query-matches="{{wide}}"></iron-media-query>
Expand Down Expand Up @@ -364,11 +372,11 @@
* takes the user back to the top of the page
*/
_backToTop() {
let scrollDuration = 500;
let scrollStep = -window.scrollY / (scrollDuration / 15);
let scrollDuration = 250;
let scrollStep = -this.parentElement.scrollTop / (scrollDuration / 15);
let scrollInterval = setInterval(() => {
if (window.scrollY != 0) {
window.scrollBy(0, scrollStep);
if (this.parentElement.scrollTop != 0) {
this.parentElement.scrollTop += scrollStep;
}
else clearInterval(scrollInterval);
},
Expand Down
Loading

0 comments on commit d8b4b15

Please sign in to comment.