Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add padding to bottom of global mode list #22112

Merged
merged 15 commits into from
Jun 30, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
7 changes: 7 additions & 0 deletions packages/launchpad/src/global/GlobalPage.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ describe('<GlobalPage />', { viewportHeight: 900, viewportWidth: 1200 }, () => {
it('renders projects', () => {
cy.findByText(testProject).should('be.visible')
cy.findByText(testProjectPath).should('be.visible')
// validate that there is some padding on the bottom
cy.get('[data-cy="project-card"]')
.parent()
.invoke('outerHeight')
.then((parentHeight) => {
cy.get('[data-cy="project-card"]').invoke('outerHeight').should('be.lt', parentHeight)
viniciuspietscher marked this conversation as resolved.
Show resolved Hide resolved
})
})

it('can filter down the projects by name', () => {
Expand Down
5 changes: 4 additions & 1 deletion packages/launchpad/src/global/GlobalPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
>
{{ t('globalPage.recentProjectsHeader') }}
</h2>
<div :class="{ 'md:grid md:grid-cols-2 md:gap-24px mb-0': filteredProjects?.length > 1 }">
<div
class="pb-24px"
:class="{ 'md:grid md:grid-cols-2 md:gap-24px mb-0': filteredProjects?.length > 1 }"
>
<GlobalProjectCard
v-for="project in filteredProjects"
:key="project.id"
Expand Down