Skip to content

Commit

Permalink
Move withdraw buttons in line with other buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Jan 13, 2025
1 parent 96b9c59 commit c9d745a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
4 changes: 0 additions & 4 deletions app/preprints/-components/withdrawal-preprint/styles.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.withdrawal-button {
margin-top: 20px;
}

.explanation-container {
margin-bottom: 20px;
}
Expand Down
1 change: 0 additions & 1 deletion app/preprints/-components/withdrawal-preprint/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<dialog.trigger>
<Button
@type='destroy'
local-class='withdrawal-button'
data-analytics-name='Withdrawal Button'
data-test-withdrawal-button
{{on 'click' dialog.open}}
Expand Down
12 changes: 5 additions & 7 deletions app/preprints/detail/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@
</Button>
{{/if}}
{{#if this.model.canDisplayWithdrawalButton}}
<div local-class='{{if (is-mobile) 'mobile-button-container' 'desktop-button-container'}}'>
<Preprints::-Components::WithdrawalPreprint
@preprint={{this.model.preprint}}
@provider={{this.model.provider}}
@onWithdrawal={{this.onWithdrawal}}
/>
</div>
<Preprints::-Components::WithdrawalPreprint
@preprint={{this.model.preprint}}
@provider={{this.model.provider}}
@onWithdrawal={{this.onWithdrawal}}
/>
{{/if}}
</div>
</div>
Expand Down

0 comments on commit c9d745a

Please sign in to comment.