Skip to content

Commit

Permalink
fix: Upcomming events card responsviness and max width (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
pghorpade authored Sep 4, 2024
1 parent 9816519 commit 7fd9b46
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 28 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"nuxt-graphql-request": "^7.0.5",
"sass": "^1.66.1",
"ucla-library-design-tokens": "^5.22.0",
"ucla-library-website-components": "3.10.0"
"ucla-library-website-components": "3.11.0"
}
}
32 changes: 10 additions & 22 deletions pages/events/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,19 +225,17 @@ const parsedFTVAEventScreeningDetails = computed(() => {
</div>
</div>
<div class="full-width">
<SectionWrapper
<SectionWrapper
v-if="parsedFtvaEventSeries && parsedFtvaEventSeries.length > 0"
section-title="Upcoming events in this series"
theme="paleblue"
>
<SectionTeaserCard
v-if="parsedFtvaEventSeries && parsedFtvaEventSeries.length > 0"
section-title="Upcoming events in this series"
theme="paleblue"
>
<SectionTeaserCard
v-if="parsedFtvaEventSeries && parsedFtvaEventSeries.length > 0"
data-test="event-series"
:items="parsedFtvaEventSeries"
/>
</SectionWrapper>
</div>
data-test="event-series"
:items="parsedFtvaEventSeries"
/>
</SectionWrapper>
</main>
</template>
Expand Down Expand Up @@ -328,16 +326,6 @@ $pale-blue: #E7EDF2;
}
}
.full-width {
width: 100%;
background-color: $pale-blue;
margin: 0 auto;
.section-wrapper.theme-paleblue {
background-color: $pale-blue;
}
}
/* makes all EventSeries same height */
:deep(.card) {
min-height: 350px;
Expand Down
9 changes: 4 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 comments on commit 7fd9b46

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sign in to comment.