Skip to content

Commit

Permalink
FIx comments and sponsors from overflowing
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Therrien-Beslogic committed Nov 26, 2024
1 parent 4774c39 commit c566d5d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
7 changes: 7 additions & 0 deletions canopeum_frontend/src/assets/styles/muiCustomTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ const muiCustomTheme = createTheme({
},
},
components: {
MuiDialog: {
styleOverrides: {
root: {
wordWrap: 'break-word', // Same as .card
},
},
},
MuiDialogActions: {
styleOverrides: {
spacing: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,12 @@ const AnalyticsSiteHeader = ({ siteSummary }: Props) => {
/>
</div>

<div
className='d-flex align-items-center fw-bold overflow-x-auto pb-2 mt-4'
style={{ maxWidth: '800px' }} // TODO: Magic number
>
<span className='material-symbols-outlined'>group</span>
<span className='ms-1 me-2'>{translate('analyticsSite.sponsors')}:</span>
<div className='d-flex gap-4'>
<div className='d-flex flex-wrap align-items-center fw-bold overflow-x-auto pb-2 mt-4'>
<label className='d-flex form-label'>
<span className='material-symbols-outlined'>group</span>
<span className='ms-1 me-2'>{translate('analyticsSite.sponsors')}:</span>
</label>
<div className='d-flex flex-wrap gap-4'>
{siteSummary.sponsors.map(sponsor => (
<BatchSponsorLogo key={sponsor.id} sponsor={sponsor} />
))}
Expand Down
2 changes: 1 addition & 1 deletion canopeum_frontend/src/components/social/PostComment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const PostComment = ({ comment, onDelete, siteId }: Props) => {
</div>

<div className='mt-1'>
<span>{comment.body}</span>
{comment.body}
</div>
</div>
)
Expand Down

0 comments on commit c566d5d

Please sign in to comment.