Skip to content

Commit

Permalink
chore: make role card horizontal on small
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Nov 28, 2024
1 parent 3849ec5 commit f37aa2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/(dashboard)/[guildId]/[roleGroupId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type Reward = typeof RE;

const RoleCard = async ({ role }: { role: Role }) => {
const rewards = (await Promise.all(
// @ts-ignore
role.rewards?.map(({ rewardId }) => {
const req = `${env.NEXT_PUBLIC_API}/reward/id/${rewardId}`;
try {
Expand All @@ -74,8 +75,8 @@ const RoleCard = async ({ role }: { role: Role }) => {
//console.log(rewards);

return (
<Card className="flex border" key={role.id}>
<div className="w-1/2 border-r-2 p-6">
<Card className="flex flex-col border md:flex-row" key={role.id}>
<div className="border-r-2 p-6 md:w-1/2">
<div className="flex items-center gap-3">
{role.imageUrl && (
<img
Expand All @@ -99,7 +100,7 @@ const RoleCard = async ({ role }: { role: Role }) => {
</ScrollArea>
)}
</div>
<div className="w-1/2 bg-background p-6">
<div className="bg-background p-6 md:w-1/2">
<div className="flex items-center justify-between">
<span className="font-bold text-foreground-secondary text-xs">
REQUIREMENTS
Expand Down

0 comments on commit f37aa2e

Please sign in to comment.