-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Made UI responsive for smaller screens (#339)
* Implemented a mui theme * Added logo to assets * Replaced logo url with local in navbar * Implemented loading animation for resultcontainer * Set the `textTransform` for buttons to `none` * Updated components' layout * Removed unncessary styles * Modified modalities' bg color * Updated affected test * Removed full screen condition from `AuthDialog` component * Implemented `SmallScreenSizeDialog` component * Updated app layout * Implemented `SmallScreenSizeDialog` component test * Added a test for `SmallScreenSizeDialog` * Renamed `Alert` e2e test to `Feedback` * Addressed comment from PR review
- Loading branch information
Showing
17 changed files
with
216 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import SmallScreenSizeDialog from '../../src/components/SmallScreenSizeDialog'; | ||
|
||
const props = { | ||
onClose: () => {}, | ||
}; | ||
|
||
describe('SmallScreenSizeDialog', () => { | ||
it('Displays a MUI dialog with the title and "sing in with google" button', () => { | ||
cy.mount(<SmallScreenSizeDialog open onClose={props.onClose} />); | ||
cy.get('[data-cy="small-screen-size-dialog"]').should('be.visible'); | ||
cy.get('[data-cy="small-screen-size-dialog"]').should('contain', 'Unsupported Screen Size'); | ||
cy.get('[data-cy="small-screen-size-dialog"]').should( | ||
'contain', | ||
'not optimized for use on smaller screens' | ||
); | ||
cy.get('[data-cy="close-small-screen-size-dialog-button"]').should('be.visible'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.