Skip to content

Commit

Permalink
fix: bg cover
Browse files Browse the repository at this point in the history
  • Loading branch information
cweedlee committed Aug 30, 2024
1 parent 3df92f4 commit fb6f76f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/agenda/agendaDetail/AgendaInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ export default function AgendaInfo({
<div
className={`${styles.infoContainer} ${containerSize}`}
style={{
background: `linear-gradient(0deg, #fff 6rem, rgba(0, 0, 0, 0) 10rem), url(${
background: `linear-gradient(0deg, #fff 7rem, rgba(0, 0, 0, 0) 10rem), url(${
agendaData.agendaPosterUrl || '/image/agenda/42.jpg'
})`,
}) lightgray 50% / cover no-repeat`,
}}
>
<div className={styles.infoWarp}>
Expand Down
4 changes: 2 additions & 2 deletions components/agenda/utils/PageController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ const PageController = ({
<button
className={styles.agendaInfoContainer}
style={{
background: `linear-gradient(180deg, #fff 5rem, rgba(0, 0, 0, 0) 10rem), url(${
background: `linear-gradient(0deg, #fff 7rem, rgba(0, 0, 0, 0) 10rem), url(${
data[current]?.agendaPosterUrl || '/image/agenda/42.jpg'
})`,
}) lightgray 50% / cover no-repeat`,
}}
onClick={(e) => {
const target = e.target as HTMLElement;
Expand Down
1 change: 0 additions & 1 deletion styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

.title {
@include text(main-menu);
@include gridHidden(mobile);
margin: 1rem 0 0 1.5rem;
font-size: $font-size-l;
}
Expand Down

0 comments on commit fb6f76f

Please sign in to comment.