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

reputation fix #873

Merged
merged 2 commits into from
Nov 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/pages/detail/detail-simpledeal.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
background-image: var(--sc-bg);
@apply --layout-vertical;
margin-top: 159px;
min-height: calc(100vh - 159px);
box-sizing: border-box;
padding: 0px 10px 25px 10px;
height: 100%;
Expand Down
5 changes: 1 addition & 4 deletions src/pages/hashtag-list/hashtag-list-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
-->
<link rel="import" href="../../../bower_components/polymer/polymer-element.html">
<link rel="import" href="../../../bower_components/iron-image/iron-image.html">
<link rel="import" href="../../displays/display-divider.html">

<dom-module id="hashtag-list-item">
<template>
Expand All @@ -17,14 +16,12 @@
.container {
box-sizing: border-box;
padding: 25px 10vw 25px;
width: 100%;
cursor: pointer;
background-color: none;
transition: background-color 0.5s ease;
@apply --layout-horizontal;
}


.flex {
@apply --layout-flex;
}
Expand All @@ -49,6 +46,7 @@
.container[wide-layout] .deals {
@apply --body-default;
font-size: 14px;
box-sizing: border-box;
margin: 0 0 4px 20px;
}

Expand Down Expand Up @@ -91,7 +89,6 @@
</div>
<div class="right"></div>
</div>
<display-divider></display-divider>

</template>
<script>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/hashtag-list/hashtag-list-router.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<link rel="import" href="../../displays/display-my-info.html">
<link rel="import" href="../../displays/display-icon-back.html">
<link rel="import" href="../../displays/display-hashtagadd-btn.html">
<link rel="import" href="../../displays/display-divider.html">
<link rel="import" href="./hashtag-list-item.html">

<dom-module id="page-hashtag-list">
Expand All @@ -36,6 +37,10 @@
margin-top: 120px;
}

display-divider {
width: 100%;
}

display-hashtagadd-btn {
position: fixed;
bottom: 50px;
Expand All @@ -56,6 +61,7 @@
<display-my-info avatarSmall path="{{path}}" on-wallet="_handleOnWallet" on-profile="_handleOnProfile"></display-my-info>
<template is="dom-repeat" items="[[hashtagList]]" filter="_showHashtag">
<hashtag-list-item item="[[item]]" on-hashtag="_handleOnHashtag"></hashtag-list-item>
<display-divider></display-divider>
</template>
<display-hashtagadd-btn on-tap="_newHashtag">
</display-hashtagadd-btn>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/hashtag/hashtag-simpledeal.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
.container {
background-image: var(--sc-bg);
min-height: calc(100vh - 159px);
width: 100%;
margin-top: 159px;
max-width: 100vw;
}

.middle {
Expand All @@ -47,7 +47,6 @@

.container[wide-layout] {
padding: 0px 0 10px 10vw;
padding-right: 22vw;
margin-top: 159px;
}

Expand Down
1 change: 1 addition & 0 deletions src/pages/page-my-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@
}

_toArray() {
if (this.address) this.address = this.address.toLowerCase()
if (this.reputation[this.address]) {
let array = [];
for (let key in this.reputation[this.address]) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/reputation/reputation-router.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
_routeChanged() {
if (
this.route.path.split('/')[1] == 'reputation') {
this.address = this.route.path.split('/')[2];
this.address = this.route.path.split('/')[2].toLowerCase();
this.avatarHash = this.route.path.split('/')[3];
this.username = this.route.path.split('/')[4];
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/shared-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
}

--general-divider: {
width: 100vw;
width: 100%;
background-color: #dddddd;
opacity: 1;
height: 1px;
Expand Down