Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/components/page/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ export function PageHero({
{icon}
</Box>
<Box as="h2" direction="Column" gap="200" alignItems="Center">
<Text align="Center" size="H2">
<Text align="Center" size="H2" className={css.PageHeroText}>
{title}
</Text>
<Text align="Center" priority="400">
<Text align="Center" priority="400" className={css.PageHeroText}>
{subTitle}
</Text>
</Box>
Expand Down
7 changes: 7 additions & 0 deletions src/app/components/page/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ export const PageHeroSection = style([
},
]);

export const PageHeroText = style({
minWidth: 0,
maxWidth: '100%',
overflowWrap: 'anywhere',
wordBreak: 'break-word',
});

export const PageContentCenter = style([
DefaultReset,
{
Expand Down
10 changes: 7 additions & 3 deletions src/app/features/lobby/LobbyHero.css.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import { style } from '@vanilla-extract/css';
import { config } from 'folds';

export const LobbyHeroTopic = style({
display: '-webkit-box',
WebkitLineClamp: 3,
WebkitBoxOrient: 'vertical',
display: 'block',
overflow: 'hidden',
minWidth: 0,
width: '100%',
whiteSpace: 'normal',
overflowWrap: 'anywhere',
wordBreak: 'break-word',
hyphens: 'auto',

':hover': {
cursor: 'pointer',
Expand Down
Loading