mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
fix(web): correct styling for servers listing recents/all headers
This commit is contained in:
parent
994d7bba2c
commit
219ea2228b
2 changed files with 7 additions and 3 deletions
|
@ -21,3 +21,7 @@ export const CardContainer = styled.div`
|
|||
max-width: 30%;
|
||||
`)}
|
||||
`;
|
||||
|
||||
export const SectionHead = styled.div`
|
||||
flex: 1 1 100%;
|
||||
`;
|
||||
|
|
|
@ -3,7 +3,7 @@ import { ServerListingCard } from '@roleypoly/design-system/molecules/server-lis
|
|||
import { getRecentAndSortedGuilds } from '@roleypoly/misc-utils/guildListing';
|
||||
import { GuildSlug } from '@roleypoly/types';
|
||||
import * as React from 'react';
|
||||
import { CardContainer, ContentContainer } from './ServersListing.styled';
|
||||
import { CardContainer, ContentContainer, SectionHead } from './ServersListing.styled';
|
||||
|
||||
type ServersListingProps = {
|
||||
guilds: GuildSlug[];
|
||||
|
@ -34,9 +34,9 @@ export const ServersListing = (props: ServersListingProps) => {
|
|||
<ContentContainer>
|
||||
{recentGuildSlugs && (
|
||||
<>
|
||||
<div>Recent Guilds</div>
|
||||
<SectionHead>Recent Guilds</SectionHead>
|
||||
<CardList guilds={recentGuildSlugs} />
|
||||
<div>All Guilds</div>
|
||||
<SectionHead>All Guilds</SectionHead>
|
||||
</>
|
||||
)}
|
||||
<CardList guilds={sortedGuildSlugs} />
|
||||
|
|
Loading…
Add table
Reference in a new issue