Skip to content

Commit

Permalink
Merge pull request #74 from nerdvibe/fix/scam-tx-style
Browse files Browse the repository at this point in the history
Fixed the style for Scam transactions
  • Loading branch information
nerdvibe authored Feb 7, 2022
2 parents 7bfc421 + 9f8964c commit 5dc076c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 18 deletions.
1 change: 1 addition & 0 deletions src/components/transactionsTable/TransactionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const TransactionRow = (
href={`${process.env.REACT_APP_EXPLORER_URL}/${urlPath}/${id}`}
target="_blank"
rel="noreferrer"
className="purple-text"
>
{id}
</a>
Expand Down
69 changes: 51 additions & 18 deletions src/styles/__table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,39 +32,45 @@ $global-radius: 4px;
width: 20%;
}

.dangerous-transaction{
background-color: #fdd !important;
td{
border-bottom: 1px solid #fdd !important;
.dangerous-transaction {
td {
border-bottom: 1px solid #ffdddd00 !important;
}
.table-element {
padding-bottom: 0px !important;
background: #ff65653d;
}
}

.scam-alert-row{
*{
.scam-alert-row {
* {
font-style: italic;
font-size: small;
line-height: 10px;
background-color: #fdd !important;
}
td{
td {
border-top: none !important;
border-bottom: 1px solid rgb(255, 29, 29) !important;
padding: 6px !important;
color: #ff1e1e !important;
padding-bottom: 10px !important;
background: #ff65653d;
}
}

.is-boosted {
background: #fffdef27;
}

.fee-column{
.fee-column {
width: 80px !important;
}

.info-column{
.info-column {
width: 150px !important;
}

.stake-table-button{
.stake-table-button {
width: 200px !important;
}

Expand Down Expand Up @@ -147,7 +153,7 @@ th {
width: 20% !important;
}

.scam-alert-row{
.scam-alert-row {
position: relative;
border-top: red;
top: -18px;
Expand Down Expand Up @@ -191,11 +197,12 @@ th {
}
}

.fee-column,.info-column{
.fee-column,
.info-column {
width: 50% !important;
}
.stake-table-button{

.stake-table-button {
width: 100% !important;
}
}
Expand Down Expand Up @@ -367,12 +374,38 @@ th {
}

@media (min-width: 1200px) {
#transaction-table{
.small-screen-stake-table-text,.small-screen-stake-table-text p{
#transaction-table {
.small-screen-stake-table-text,
.small-screen-stake-table-text p {
text-align: left;
}
.stake-table-row td{
.stake-table-row td {
height: auto;
}
}
}

@media (max-width: 1200px) {
#transaction-table #rwd-table-large tr {
box-shadow: none !important;
}

.scam-alert-row {
margin-top: 1px;
margin-bottom: 0px;
border-radius: 2px;
border-bottom: 1px solid #ff1d1d !important;
td {
padding-top: 10px !important;
}
}

.dangerous-transaction {
.table-element {
padding-bottom: 10px !important;
}
.table-icon {
padding-bottom: 20px !important;
}
}
}

0 comments on commit 5dc076c

Please sign in to comment.