Skip to content

Commit

Permalink
Namada proposal fixes (#115)
Browse files Browse the repository at this point in the history
* updated css for name section text wrap

* removed reverse loading data

* fixd typo error
  • Loading branch information
aj2620 authored Jan 9, 2025
1 parent 9307147 commit dcaffab
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/Proposals/Cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Cards = (props) => {
const reversedItems = props.proposals.length &&
props.proposals.map(function iterateItems (item) {
return item;
}).reverse();
});

const VoteCalculation = (proposal, val) => {
if (proposal.status === 2 || proposal.status === 'PROPOSAL_STATUS_VOTING_PERIOD') {
Expand Down
24 changes: 24 additions & 0 deletions src/containers/Stake/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
align-items: flex-start;
}

.stake .table .validator .name_section > p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 300px;
text-align: left;
}

.stake .table .validator .name_section .hash_text {
color: unset;
max-width: 140px;
Expand Down Expand Up @@ -199,6 +207,10 @@
width: max-content;
margin: auto;
}

.stake .table .validator .name_section > p {
width: 200px;
}
}

@media (max-width: 958px) {
Expand All @@ -221,6 +233,10 @@
.table td .tokens {
text-align: right;
}

.stake .table .validator .name_section > p {
width: 300px;
}
}

@media (max-width: 770px) {
Expand Down Expand Up @@ -263,6 +279,10 @@
.table .actions > button {
padding: 5px 10px;
}

.stake .table .validator .name_section > p {
width: 200px;
}
}

@media (max-width: 375px) {
Expand All @@ -274,4 +294,8 @@
width: 100%;
margin: 4px 0;
}

.stake .table .validator .name_section > p {
width: 150px;
}
}

0 comments on commit dcaffab

Please sign in to comment.