Skip to content

Commit

Permalink
fix(nfts): snaefell-ui terms acceptance button visible in mobile (#17645
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bearni95 authored Jun 22, 2024
1 parent 2c90a7f commit 31175b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { browser } from '$app/environment';
import { Button } from '$components/core/Button';
import { account } from '$stores/account';
import { Modal, ModalBody, ModalFooter, ModalTitle } from '$ui/Modal';
import { Modal, ModalBody, ModalTitle } from '$ui/Modal';
import {
bodyWrapperClasses,
Expand Down Expand Up @@ -44,13 +44,12 @@
<input type="checkbox" bind:checked={isTermsChecked} class="checkbox border bg-overlay-background" />
<span class="label-text text-content-secondary">I agree to the terms and conditions mentioned above.</span>
</label>
</ModalBody>
<ModalFooter>

<div class={footerWrapperClasses}>
<Button on:click={acceptTerms} disabled={!isTermsChecked} type="primary" wide block>
{$t('buttons.confirm')}
</Button>
</div>
</ModalFooter>
</ModalBody>
</div>
</Modal>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ export const modalTitleClasses = classNames(
'border-border-divider-default',
);
export const bodyWrapperClasses = classNames('text-content-primary', 'py-4');
export const footerWrapperClasses = classNames('w-full', 'flex', 'flex-row', 'items-center', 'justify-center', 'gap-4');
export const footerWrapperClasses = classNames(
'w-full',
'flex',
'flex-row',
'items-center',
'justify-center',
'gap-4',
'my-6',
'md:mb-6',
);
export const spinnerSmWrapper = classNames(
'bg-interactive-tertiary',
'rounded-md',
Expand Down

0 comments on commit 31175b8

Please sign in to comment.