Skip to content

Commit

Permalink
fix: mobile rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Dec 19, 2024
1 parent 3b4c899 commit dedc5e8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
17 changes: 16 additions & 1 deletion components/factory/components/DenomList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export default function DenomList({
}
passHref
>
<button className="btn btn-gradient w-[224px] h-[52px] text-white rounded-[12px] focus:outline-none focus-visible:ring-1 focus-visible:ring-primary">
<button className="btn btn-gradient w-[224px] h-[52px] hidden md:block text-white rounded-[12px] focus:outline-none focus-visible:ring-1 focus-visible:ring-primary">
Create New Token
</button>
</Link>
Expand Down Expand Up @@ -370,6 +370,21 @@ export default function DenomList({
</div>
)}
</div>
<div className="mt-6 w-full justify-center md:hidden block">
<Link
href={
isGroup
? `/factory/create?isGroup=${isGroup}&groupPolicyAddress=${admin}`
: '/factory/create'
}
passHref
>
<button className="btn btn-gradient w-full h-[52px] text-white rounded-[12px]">
Create New Token
</button>
</Link>
</div>

<DenomInfoModal
openDenomInfoModal={modalType === 'info'}
setOpenDenomInfoModal={open => {
Expand Down
16 changes: 8 additions & 8 deletions components/groups/components/myGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export function YourGroups({
</table>
<div className="flex item-center justify-between">
<Link href="/groups/create" passHref aria-label="Create new group">
<button className="btn btn-gradient w-[224px] h-[52px] text-white rounded-[12px] focus:outline-none focus-visible:ring-1 focus-visible:ring-primary">
<button className="btn btn-gradient w-[224px] h-[52px] hidden md:block text-white rounded-[12px] focus:outline-none focus-visible:ring-1 focus-visible:ring-primary">
Create New Group
</button>
</Link>
Expand Down Expand Up @@ -403,15 +403,15 @@ export function YourGroups({
</div>
)}
</div>
<div className="mt-6 w-full justify-center md:hidden block">
<Link href="/groups/create" passHref>
<button className="btn btn-gradient w-full h-[52px] text-white rounded-[12px]">
Create New Group
</button>
</Link>
</div>
</div>
</div>
<div className="mt-6 w-full justify-center md:hidden block">
<Link href="/groups/create" passHref>
<button className="btn btn-gradient w-full h-[52px] text-white rounded-[12px]">
Create New Group
</button>
</Link>
</div>
</div>
</div>

Expand Down

0 comments on commit dedc5e8

Please sign in to comment.