Skip to content

Commit

Permalink
fix: hide leading and trailing days in month on mobile (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomosterlund authored Mar 9, 2023
1 parent df81789 commit 5633922
Show file tree
Hide file tree
Showing 7 changed files with 248 additions and 149 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/09-small-qalendar.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,12 @@ describe('SmallQalendar', () => {
cy.get('.is-day-mode').should('exist')
cy.get('.is-week-mode').should('not.exist')
})

it('Should not display leading or trailing days in month mode', () => {
cy
// @ts-ignore
.changeMode('month')

cy.get('.trailing-or-leading').should('not.be.visible')
})
})
2 changes: 1 addition & 1 deletion cypress/support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')
// require('./commands')
1 change: 0 additions & 1 deletion docs/.vitepress/config.js → docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ export default {
copyright: 'Copyright © 2022-present Tom Österlund'
}
},
outline: [2, 3],
appearance: false,
};
File renamed without changes.
Loading

0 comments on commit 5633922

Please sign in to comment.