Skip to content

Commit

Permalink
Merge pull request #322 from snake-eaterr/edit-source-modal-and-prompt
Browse files Browse the repository at this point in the history
ui fix
  • Loading branch information
snake-eaterr authored Oct 4, 2024
2 parents 8cee378 + 2198252 commit 7488a8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 107 deletions.
1 change: 0 additions & 1 deletion src/Components/Background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ export const Background = () => {
}
nostrSpends.forEach(async s => {
const { pubkey, relays } = parseNprofile(s.pasteField)
console.log({relays})
const client = await getNostrClient({ pubkey, relays }, s.keys)
await fetchSourceHistory(s, client, s.id)
})
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Modals/EditSourceModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export const EditSourceModal = () => {
{
(sourceToEdit.type === "payTo" && sourceToEdit.source.vanityName)
&&
<span>{sourceToEdit.source.vanityName.split("@")[0]}</span>
<span className={styles["ln-address"]}>{sourceToEdit.source.vanityName.split("@")[0]}</span>
}
</>

Expand Down
108 changes: 3 additions & 105 deletions src/Components/Modals/EditSourceModal/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,99 +88,7 @@
}
}
}
.debit-info {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 15px;

.sats-amount {
width: 140px;
font-size: 36px;
font-weight: bolder;
}

.input {
@include input;
font-size: 36px;
color: white;
text-align: center;
}

.sats-amount-input {

width: 180px;
font-weight: bolder;
margin: 4px 0;
}



.orange-text {
color: #ff7700;
font-size: 16px;
}

.fiat {
color: #999999;
font-size: 12px;

}


.rule-options {
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
margin: 7px 0;

&.disabled {
opacity: 0.5;
pointer-events: none;
}

span {
font-size: 20px;
}

.num-intervals-input {
@include input;
width: 30px;
height: 30px;

font-size: 15px;
text-align: center;
}

.dropdown-box {
@include input;
display: flex;
text-align: center;
justify-content: center;
align-items: center;
width: 8rem;
height: 30px;
}
}

.adjust-checkbox-container {
display: flex;
justify-content: center;
align-items: flex-start;
padding-inline: 15px;
margin: 12px 0;

p {
font-size: 11px;
text-align: left;
margin-left: 7px;
}
}


}
.buttons-container {
display: flex;
justify-content: center;
Expand All @@ -191,18 +99,8 @@
@include rainbow-button;
}
}
.checkbox-container {
display: flex;
align-items: center;
justify-content: center;

span {
font-size: 20px;
margin-left: 5px;
font-weight: 500;
}
}
.faded-text {
color: #8c8c8c;
.ln-address {
text-align: center;
font-size: 12px;
}
}

0 comments on commit 7488a8f

Please sign in to comment.