Skip to content

Commit

Permalink
fix(modal): fixup! fix x button position
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavSokov committed Jan 4, 2024
1 parent 05202c1 commit fb08b27
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
6 changes: 0 additions & 6 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,6 @@ button.is-grey:hover {
}
}

.top-right-button {
position: absolute;
top: 10px;
right: 12px;
}

.top-right-shared-account-button {
position: absolute;
top: 60px;
Expand Down
10 changes: 5 additions & 5 deletions app/views/spends/_modal.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#modal-spend-form.modal
.modal-background
.modal-card
.button.is-white.is-round.top-right-button.close-button
figure.image.is-20x20
= image_tag('cross.svg', alt: 'X')
.modal-card-body.mx-3
.modal-card-body.mx-3.pt-2
= form_with url:false, method: :post, id: 'spend-form-with' do |f|
.field.mt-2
.field.is-flex.is-align-items-flex-end.is-justify-content-space-between
= f.label :amount, "Amount to be deducted"
.button.is-white.is-round.close-button.p-0
figure.image.is-20x20
= image_tag('cross.svg', alt: 'X')
.field.is-relative
= f.text_field :amount, autofocus: true, type: 'number', step: 0.1, min: 0.1, class: 'input amount', required: true
= link_to 'All Balance', '#', class: 'button is-small is-light all-balance-button'
Expand Down
10 changes: 5 additions & 5 deletions app/views/topups/_modal.html.slim
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#modal-topup-form.modal
.modal-background
.modal-card
.button.is-white.is-round.top-right-button.close-button
figure.image.is-20x20
= image_tag('cross.svg', alt: 'X')
.modal-card-body.mx-3
.modal-card-body.mx-3.pt-2
= form_with url:false, method: :post, id: 'topup-form-with' do |f|
.field.mt-2
.field.is-flex.is-align-items-flex-end.is-justify-content-space-between
= f.label :amount, "Amount to be added"
.button.is-white.is-round.close-button.p-0
figure.image.is-20x20
= image_tag('cross.svg', alt: 'X')
.field
= f.text_field :amount, autofocus: true, type: 'number', step: 0.1, min: 0.1, class: "input", required: true
.field
Expand Down

0 comments on commit fb08b27

Please sign in to comment.