Skip to content

Commit

Permalink
Fixed : Activity Carousel Image layout error (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
huoyueyuyuan authored Sep 6, 2023
1 parent ea23083 commit 2eaf463
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
7 changes: 0 additions & 7 deletions pages/activity/[name]/activityDetail.module.less

This file was deleted.

18 changes: 11 additions & 7 deletions pages/activity/[name]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import { isServer, Media } from '../../../models/Base';
import { i18n } from '../../../models/Base/Translation';
import sessionStore from '../../../models/User/Session';
import { convertDatetime } from '../../../utils/time';
import styles from './activityDetail.module.less';

const { t } = i18n;

Expand Down Expand Up @@ -279,15 +278,20 @@ export default class ActivityPage extends PureComponent<ActivityPageProps> {
<Carousel>
{((banners || []) as Media[]).map(({ uri }) => (
<Carousel.Item key={uri}>
<Image
className={`d-block object-fit-cover ${styles.carouselImageHeight}`}
fluid
src={uri}
alt={name}
/>
<div
className="d-flex align-items-center"
style={{ height: '45vh' }}
>
<Image
className=" w-100 h-100 object-fit-cover"
src={uri}
alt={name}
/>
</div>
</Carousel.Item>
))}
</Carousel>

<Col className="d-flex flex-column justify-content-start">
<h2>{displayName}</h2>
<aside className="pb-2">
Expand Down

1 comment on commit 2eaf463

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for open-hackathon ready!

✅ Preview
https://open-hackathon-8f8zaqqow-techquery.vercel.app

Built with commit 2eaf463.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.