Silownie: czlonkowie i urzadzenia w jednej linii pod adresem (karty listy rownej wysokosci)
This commit is contained in:
@@ -77,14 +77,16 @@ function GymCard({ gym }: { gym: Gym }) {
|
||||
</Link>
|
||||
<div className="flex flex-col gap-1 text-dim text-[0.78rem]">
|
||||
<MetaItem icon={MapPin}>{gym.location || '—'}</MetaItem>
|
||||
<MetaItem icon={Users}>
|
||||
{gym.capacity != null
|
||||
? t('membersCapacity', { members, capacity: gym.capacity })
|
||||
: t('common:counters.members', { count: members })}
|
||||
</MetaItem>
|
||||
<MetaItem icon={Dumbbell}>
|
||||
{t('common:counters.devices', { count: gym.equipment.length })}
|
||||
</MetaItem>
|
||||
<div className="flex items-center gap-x-4">
|
||||
<MetaItem icon={Users}>
|
||||
{gym.capacity != null
|
||||
? t('membersCapacity', { members, capacity: gym.capacity })
|
||||
: t('common:counters.members', { count: members })}
|
||||
</MetaItem>
|
||||
<MetaItem icon={Dumbbell}>
|
||||
{t('common:counters.devices', { count: gym.equipment.length })}
|
||||
</MetaItem>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid grid-cols-7 gap-0.5">
|
||||
{availability.map((day, i) => (
|
||||
|
||||
@@ -146,16 +146,18 @@ function GymCard({
|
||||
</Link>
|
||||
<div className="flex flex-col gap-1 text-dim text-[0.78rem]">
|
||||
<MetaItem icon={MapPin}>{gym.location || '—'}</MetaItem>
|
||||
<MetaItem icon={Users}>
|
||||
{memberCount != null
|
||||
? t('page.members', { count: memberCount })
|
||||
: gym.capacity != null
|
||||
? t('detail.places', { count: gym.capacity })
|
||||
: '—'}
|
||||
</MetaItem>
|
||||
<MetaItem icon={Dumbbell}>
|
||||
{t('common:counters.devices', { count: gym.equipment.length })}
|
||||
</MetaItem>
|
||||
<div className="flex items-center gap-x-4">
|
||||
<MetaItem icon={Users}>
|
||||
{memberCount != null
|
||||
? t('page.members', { count: memberCount })
|
||||
: gym.capacity != null
|
||||
? t('detail.places', { count: gym.capacity })
|
||||
: '—'}
|
||||
</MetaItem>
|
||||
<MetaItem icon={Dumbbell}>
|
||||
{t('common:counters.devices', { count: gym.equipment.length })}
|
||||
</MetaItem>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid grid-cols-7 gap-0.5">
|
||||
{availability.map((day, i) => (
|
||||
|
||||
Reference in New Issue
Block a user